1.提交缺失的东西

This commit is contained in:
2025-05-13 17:52:12 +08:00
parent b3d0e9ac7c
commit 0f50a4c7f1

View File

@ -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('不是有效的图像文件');
}