作者 郭宇鹏
1 个管道 的构建 通过 耗费 9 秒

'12-31'

@@ -134,7 +134,6 @@ class Treasured extends BaseApi @@ -134,7 +134,6 @@ class Treasured extends BaseApi
134 ->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97) //生成logo二维码 134 ->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97) //生成logo二维码
135 ->logo($this->auth->avatar)//生成logo二维码 135 ->logo($this->auth->avatar)//生成logo二维码
136 ->getPath();//获取二维码生成的地址 136 ->getPath();//获取二维码生成的地址
137 -// $code = new QRcode();  
138 $qr_code_d = $code->png($url.$treasured['id']) //生成二维码 137 $qr_code_d = $code->png($url.$treasured['id']) //生成二维码
139 ->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97) //生成logo二维码 138 ->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97) //生成logo二维码
140 ->logo($this->auth->avatar)//生成logo二维码 139 ->logo($this->auth->avatar)//生成logo二维码
@@ -55,7 +55,7 @@ class QRcode @@ -55,7 +55,7 @@ class QRcode
55 public function png($url,$outfile=false,$size=5,$evel='H'){ 55 public function png($url,$outfile=false,$size=5,$evel='H'){
56 56
57 if(!$outfile){ 57 if(!$outfile){
58 - $outfile = $this->cache_dir.DS.time().'.png'; 58 + $outfile = $this->cache_dir.DS.time().rand(1000,9999).'.png';
59 } 59 }
60 60
61 $this->outfile = $outfile; 61 $this->outfile = $outfile;