正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -35,7 +35,6 @@ class ShareController extends WeChatBaseController | @@ -35,7 +35,6 @@ class ShareController extends WeChatBaseController | ||
35 | //判断有没有生成过 | 35 | //判断有没有生成过 |
36 | if(!file_exists('./upload/poster/poster_'.$user_id.".png")){ | 36 | if(!file_exists('./upload/poster/poster_'.$user_id.".png")){ |
37 | $url = $this->get_url($my_user['id'],$my_user['status']); | 37 | $url = $this->get_url($my_user['id'],$my_user['status']); |
38 | - dump($url); | ||
39 | $webPath = 'qrcode/share_'.$user_id.'.png'; | 38 | $webPath = 'qrcode/share_'.$user_id.'.png'; |
40 | $savePath = './upload/'.$webPath; | 39 | $savePath = './upload/'.$webPath; |
41 | //生成带参二维码 | 40 | //生成带参二维码 |
@@ -53,6 +52,8 @@ class ShareController extends WeChatBaseController | @@ -53,6 +52,8 @@ class ShareController extends WeChatBaseController | ||
53 | } | 52 | } |
54 | $image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg"); | 53 | $image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg"); |
55 | $image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png"); | 54 | $image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png"); |
55 | + $image = \think\Image::open(ROOT_PATH."public/upload/qrcode/share_".$user_id.".png"); | ||
56 | + $image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$user_id.".png"); | ||
56 | $image = \think\Image::open(ROOT_PATH."public/white.png"); | 57 | $image = \think\Image::open(ROOT_PATH."public/white.png"); |
57 | $image->water(ROOT_PATH."public/upload/qrcode/share_".$user_id.".png",[195,725],100) | 58 | $image->water(ROOT_PATH."public/upload/qrcode/share_".$user_id.".png",[195,725],100) |
58 | ->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100) | 59 | ->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100) |
-
请 注册 或 登录 后发表评论