html:
<img src="{eq name='v.miniqrcode' value=""}{:url('makeMiniQrcode_do')}?id={$v.id}{else/}{$v.miniqrcode}{/eq}" style="width:100%;">
// 接口地址写在src属性中
PHP:
header('Content-type:image/png'); echo file_get_contents(ROOT_PATH . $filepath);
1
html:
<img src="{eq name='v.miniqrcode' value=""}{:url('makeMiniQrcode_do')}?id={$v.id}{else/}{$v.miniqrcode}{/eq}" style="width:100%;">
// 接口地址写在src属性中
PHP:
header('Content-type:image/png'); echo file_get_contents(ROOT_PATH . $filepath);
1
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。