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

海报

... ... @@ -35,7 +35,6 @@ class ShareController extends WeChatBaseController
//判断有没有生成过
if(!file_exists('./upload/poster/poster_'.$user_id.".png")){
$url = $this->get_url($my_user['id'],$my_user['status']);
dump($url);
$webPath = 'qrcode/share_'.$user_id.'.png';
$savePath = './upload/'.$webPath;
//生成带参二维码
... ... @@ -53,6 +52,8 @@ 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/share_".$user_id.".png");
$image->thumb(360,360,\think\Image::THUMB_FIXED)->save('./upload/qrcode/share_'.$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)
->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100)
... ...