From 677871ab87977baf32398da6765e2dd86528c967 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 15 Jul 2025 17:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8E=8B=E7=BC=A9=EF=BC=8C=E6=96=B0=E5=A2=9E=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=8E=9F=E5=9B=BE=E6=8E=A5=E5=8F=A33?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/controller/Upload.php b/app/common/controller/Upload.php index e2cb1d9..2fef030 100644 --- a/app/common/controller/Upload.php +++ b/app/common/controller/Upload.php @@ -100,7 +100,7 @@ class Upload extends BaseController $object='/'.ltrim($object,'/'); // 压缩图片 $compress_img = $file['compress_img'] ?? ''; - if ($filecate == 'image' && empty($compress_img)) { + if ($filecate == 'image' && empty($compress_img) && $message) { $compress_img = $this->getCompressImg($object, $info['ext'], $prefix); } $ret = [