From 0f50a4c7f1c5084429adf2de460df141b6f08a40 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Tue, 13 May 2025 17:52:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E7=BC=BA=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E4=B8=9C=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/FileServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/service/FileServer.php b/app/common/service/FileServer.php index 98c2017..34fd601 100644 --- a/app/common/service/FileServer.php +++ b/app/common/service/FileServer.php @@ -118,7 +118,7 @@ class FileServer $fileInfo = $StorageDriver->getFileInfo(); // 验证是否是图片文件 - if (! check_is_image($StorageDriver->getFileInfo()['tmp_name'] ?? '')) { + if (! check_is_image($StorageDriver->getFileInfo()['name'] ?? '')) { throw new Exception('不是有效的图像文件'); }