...
|
...
|
@@ -86,7 +86,7 @@ class Share extends WechatBase |
|
|
$image = \think\Image::open(ROOT_PATH."public/white.png");
|
|
|
$image->water($avatar_url,[450,40],100)
|
|
|
->water(ROOT_PATH."public/bg$type.png")
|
|
|
->water($url,[350,1000],100)
|
|
|
->water($url,[330,980],100)
|
|
|
->save($savePath."poster_$user[id].png");
|
|
|
return "./uploads/poster$type/poster_$user[id].png";
|
|
|
}
|
...
|
...
|
@@ -153,7 +153,7 @@ class Share extends WechatBase |
|
|
file_put_contents($savePath.$file_name,$code);
|
|
|
//等比放大缩小二维码
|
|
|
$image = \think\Image::open($savePath.$file_name);
|
|
|
$image->thumb(400, 400,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
|
|
|
$image->thumb(450, 450,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
|
|
|
}
|
|
|
return "./uploads/code_img/$file_name";
|
|
|
}
|
...
|
...
|
|