Skip to content

Commit

Permalink
图片审核跳过 ico 格式的图片
Browse files Browse the repository at this point in the history
  • Loading branch information
wisp-x committed Mar 24, 2022
1 parent 01c8507 commit f9b046a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/ImageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public function store(Request $request): Image
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'],
Expand Down

0 comments on commit f9b046a

Please sign in to comment.