feat: 取消上传图片的尺寸处理
parent
25a5c10bae
commit
4d4ee7d937
|
@ -91,9 +91,9 @@ class Upload extends BaseController
|
|||
$return['thumb_src'] = Image::getThumb($src, 100, 100, TImage::THUMB_SCALING); //上传返回缩略图宽度为100
|
||||
}
|
||||
$return['src'] = $src;
|
||||
if($this->isCompress){
|
||||
Image::resize($src);
|
||||
}
|
||||
// if($this->isCompress){
|
||||
// Image::resize($src);
|
||||
// }
|
||||
File::add($image, $src); //加入上传文件表
|
||||
} catch (\Exception $e) {
|
||||
return $this->json(1, $e->getMessage());
|
||||
|
|
Loading…
Reference in New Issue