...
|
...
|
@@ -150,7 +150,7 @@ class Share extends WechatBase |
|
|
file_put_contents($savePath.$file_name,$code);
|
|
|
//等比放大缩小二维码
|
|
|
$image = \think\Image::open($savePath.$file_name);
|
|
|
$image->thumb(300, 300,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
|
|
|
$image->thumb(280, 280,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
|
|
|
}
|
|
|
return "./uploads/code_img/$file_name";
|
|
|
}
|
...
|
...
|
|