作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

页面生成图片修改

@@ -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 }