...
|
...
|
@@ -57,7 +57,7 @@ class ShareController extends WeChatBaseController |
|
|
$image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg");
|
|
|
$image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png");
|
|
|
$image = \think\Image::open(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png");
|
|
|
$image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$user_id.".png");
|
|
|
$image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/code_img'.$user_id.".png");
|
|
|
$image = \think\Image::open(ROOT_PATH."public/white.png");
|
|
|
$image->water(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png",[195,725],100)
|
|
|
->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100)
|
...
|
...
|
@@ -113,9 +113,9 @@ class ShareController extends WeChatBaseController |
|
|
$image = \think\Image::open(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".jpeg");
|
|
|
$image->thumb(173,173,\think\Image::THUMB_FIXED)->save('./upload/avatar/avatar_'.$user_id.".png");
|
|
|
$image = \think\Image::open(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png");
|
|
|
$image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$user_id.".png");
|
|
|
$image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/code_img'.$user_id.".png");
|
|
|
$image = \think\Image::open(ROOT_PATH."public/white.png");
|
|
|
$image->water(ROOT_PATH."public/upload/qrcode/share_".$user_id.".png",[195,725],100)
|
|
|
$image->water(ROOT_PATH."public/upload/qrcode/code_img".$user_id.".png",[195,725],100)
|
|
|
->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100)
|
|
|
->water(ROOT_PATH."public/bg.png",\think\Image::WATER_CENTER,100)
|
|
|
->save('./upload/poster/poster_'.$user_id.".png");
|
...
|
...
|
|