作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

服务器配置

@@ -56,7 +56,7 @@ class ShareController extends WeChatBaseController @@ -56,7 +56,7 @@ class ShareController extends WeChatBaseController
56 } 56 }
57 $image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg"); 57 $image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg");
58 $image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png"); 58 $image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png");
59 - $image = \think\Image::open(ROOT_PATH."public/upload/qrcode/share_".$user_id.".png"); 59 + $image = \think\Image::open(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png");
60 $image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$user_id.".png"); 60 $image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$user_id.".png");
61 $image = \think\Image::open(ROOT_PATH."public/white.png"); 61 $image = \think\Image::open(ROOT_PATH."public/white.png");
62 $image->water(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png",[195,725],100) 62 $image->water(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png",[195,725],100)