From c77da517759f2ba41d89c9a5b59a80e6e15fa149 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 15 Jan 2026 17:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/UploadController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/common/controller/UploadController.php b/app/common/controller/UploadController.php index 309f205..f779631 100644 --- a/app/common/controller/UploadController.php +++ b/app/common/controller/UploadController.php @@ -157,7 +157,7 @@ class UploadController ->size(1024*1024*30) ->extYes(['image/jpeg','image/png']) ->extNo(['image/gif']) - ->upload($file); + ->upload($finalPath); // 清理临时文件 @unlink($tmpPath); @@ -199,8 +199,8 @@ class UploadController $image->readImage($srcPath); // 防止超大图 - $maxWidth = 2000; - $maxHeight = 2000; + $maxWidth = 1280; + $maxHeight = 1280; $image->thumbnailImage($maxWidth, $maxHeight, true);