正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -264,7 +264,8 @@ class OrderSalesmanController extends WeChatBaseController | @@ -264,7 +264,8 @@ class OrderSalesmanController extends WeChatBaseController | ||
264 | $width = $new_img->width(); | 264 | $width = $new_img->width(); |
265 | $height = $new_img->height(); | 265 | $height = $new_img->height(); |
266 | $new_img->thumb($width,$height - intval($top) * 2,5); | 266 | $new_img->thumb($width,$height - intval($top) * 2,5); |
267 | - $new_img->save('./upload/'.$img_url); | 267 | + $new_img->thumb($width/2,($height - intval($top) * 2)/2); |
268 | + $new_img->save('./upload/'.$img_url,'jpg',100); | ||
268 | $this->success('成功','',cmf_get_asset_url($img_url)); | 269 | $this->success('成功','',cmf_get_asset_url($img_url)); |
269 | } | 270 | } |
270 | } | 271 | } |
-
请 注册 或 登录 后发表评论