作者 郭宇鹏
1 个管道 的构建 失败 耗费 1 秒

'0041'

... ... @@ -90,7 +90,6 @@ class Treasured extends BaseApi
})
*/
public function addTreasured(){
dd($this->auth->avatar);
//1.验证用户权限
if ($this->auth->authlist == '' || $this->auth->authlist == ','){
$this->error('请您先实名认证');
... ... @@ -138,17 +137,13 @@ class Treasured extends BaseApi
if ($qr_code_bg && !empty($qr_code_bg['value'])){
$code = new QRcode();
$qr_code = $code->png($url.$treasured['id']) //生成二维码
->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97); //生成logo二维码
if (!empty($this->auth->avatar)){
$qr_code = $qr_code->logo($this->auth->avatar);//生成logo二维码
}
$qr_code = $qr_code->getPath();//获取二维码生成的地址
->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97) //生成logo二维码
->logo($this->auth->avatar)//生成logo二维码
->getPath();//获取二维码生成的地址
$qr_code_d = $code->png($url.$treasured['id']) //生成二维码
->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97); //生成logo二维码
if (!empty($this->auth->avatar)){
$qr_code_d = $qr_code_d->logo($this->auth->avatar);//生成logo二维码
}
$qr_code_d = $qr_code_d->background(550,950,cdnurl($qr_code_bg['value'])) //给二维码加上背景
->logo(ROOT_PATH.'public/assets/img/bg.png',4,1.97) //生成logo二维码
->logo($this->auth->avatar)//生成logo二维码
->background(550,950,cdnurl($qr_code_bg['value'])) //给二维码加上背景
->getPath();//获取二维码生成的地址
//8.更新数据
$treasured->qr_code = $qr_code;
... ...