From 8763c6a2902c174ae035d5cf495c8ec188bb8bdf Mon Sep 17 00:00:00 2001 From: macbook <418170129@qq.com> Date: Sun, 7 Feb 2021 21:08:23 +0800 Subject: [PATCH] 1 --- application/api/controller/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 229b5b0..17787b0 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -616,7 +616,7 @@ class User extends Base // 280不满足,再缩小 \think\Image::open($qrcode)->thumb(64,64)->save($qrcode); } - + halt(request()->domain().'/'.$qrcode); // $qrcode = ROOT_PATH.'public/assets/img/miniProgram/qrcode.png'; //将用户头像保存到本地 @@ -637,7 +637,7 @@ class User extends Base \think\Image::open($user_poster_bg) ->water($avatar,[16,441]) ->text($user['nickname'],$path_ttf,17,'#000000',[88,463]) - // ->water($qrcode,[253,441]) + ->water($qrcode,[253,441]) ->save($filename); $url = request()->domain().'/'.$filename.'?v='.time(); // 免费领取推广海报商品 -- libgit2 0.24.0