利用织梦自带二维码功能生成任意路径的二维码代码
修改/plus/qrcode.php文件,大概22行
if ( $type=='index' ) $url = $cfg_basehost.$cfg_plus_dir.'/index.php';
后面加:
if ( $type=='surl' ) $url =$surl;
然后,模板调用代码:
<img src='/plus/qrcode.php?action=get_qrcode&type=surl&surl=任意URL地址或要生成二维码的内容' alt='二维码'/>
