正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -57,7 +57,7 @@ class ShareController extends WeChatBaseController | @@ -57,7 +57,7 @@ class ShareController extends WeChatBaseController | ||
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/code_img".$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/code_img'.$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) |
63 | ->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100) | 63 | ->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100) |
@@ -113,9 +113,9 @@ class ShareController extends WeChatBaseController | @@ -113,9 +113,9 @@ class ShareController extends WeChatBaseController | ||
113 | $image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg"); | 113 | $image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg"); |
114 | $image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png"); | 114 | $image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png"); |
115 | $image = \think\Image::open(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png"); | 115 | $image = \think\Image::open(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png"); |
116 | - $image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$user_id.".png"); | 116 | + $image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/code_img'.$user_id.".png"); |
117 | $image = \think\Image::open(ROOT_PATH."public/white.png"); | 117 | $image = \think\Image::open(ROOT_PATH."public/white.png"); |
118 | - $image->water(ROOT_PATH."public/upload/qrcode/share_".$user_id.".png",[195,725],100) | 118 | + $image->water(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png",[195,725],100) |
119 | ->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100) | 119 | ->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100) |
120 | ->water(ROOT_PATH."public/bg.png",\think\Image::WATER_CENTER,100) | 120 | ->water(ROOT_PATH."public/bg.png",\think\Image::WATER_CENTER,100) |
121 | ->save('./upload/poster/poster_'.$user_id.".png"); | 121 | ->save('./upload/poster/poster_'.$user_id.".png"); |
-
请 注册 或 登录 后发表评论