qrcoe執(zhí)行第二遍頁(yè)面上圖片不出來(lái)了
頁(yè)面上
{volist?id="item"?name="list"} <img?src="/back/exhibit/getCode.html?randomnum={$item.randomnum}"> {/volist}
循環(huán)一次執(zhí)行一次getCode.html方法
public?function?getCode($randomnum){ ????Vendor('PHPQRcode.phpqrcode'); ????$content=?getUrl()."/home/mainexhibit/signin.html?randomnum="+$randomnum;?//二維碼內(nèi)容 ????$errorCorrectionLevel?="L"?;//容錯(cuò)級(jí)別 ????$matrixPointSize?=?6;//生成圖片大小 ????$margin?=?3;????//邊距 ????\QRcode::png($content,false,$errorCorrectionLevel,$matrixPointSize,$margin); ????exit(); ????}
只有第一次生成的二維碼返回去