From f9b046a32f5bb9bce57f1d069219fcf5bd4b6174 Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Thu, 24 Mar 2022 10:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=AE=A1=E6=A0=B8=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=20ico=20=E6=A0=BC=E5=BC=8F=E7=9A=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/ImageService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ImageService.php b/app/Services/ImageService.php index bb854301..7d99f8d3 100644 --- a/app/Services/ImageService.php +++ b/app/Services/ImageService.php @@ -216,8 +216,8 @@ class ImageService throw new UploadException('图片记录保存失败'); } - // 图片检测,跳过 tif 以及 psd 格式 - if ($configs->get(GroupConfigKey::IsEnableScan) && ! in_array($extension, ['psd', 'tif'])) { + // 图片检测,跳过 tif、ico 以及 psd 格式 + if ($configs->get(GroupConfigKey::IsEnableScan) && ! in_array($extension, ['psd', 'ico', 'tif'])) { $scanConfigs = $configs->get(GroupConfigKey::ScanConfigs); if ($this->scan( driver: $scanConfigs['driver'],