...
|
...
|
@@ -86,7 +86,7 @@ class Share extends WechatBase |
|
|
$image = \think\Image::open(ROOT_PATH."public/white.png");
|
|
|
$image->water($avatar_url,[300,100],100)
|
|
|
->water(ROOT_PATH."public/bg$type.png")
|
|
|
->water($url,[200,590],100)
|
|
|
->water($url,[210,595],100)
|
|
|
->save($savePath."poster_$user[id].png");
|
|
|
return "./uploads/poster$type/poster_$user[id].png";
|
|
|
}
|
...
|
...
|
@@ -150,7 +150,7 @@ class Share extends WechatBase |
|
|
file_put_contents($savePath.$file_name,$code);
|
|
|
//等比放大缩小二维码
|
|
|
$image = \think\Image::open($savePath.$file_name);
|
|
|
$image->thumb(280, 280,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
|
|
|
$image->thumb(270, 270,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
|
|
|
}
|
|
|
return "./uploads/code_img/$file_name";
|
|
|
}
|
...
|
...
|
|