Update security.go

This commit is contained in:
戴育兵 2025-12-16 15:39:24 +08:00
parent 5e1b72f608
commit 387636b31d

View File

@ -69,7 +69,7 @@ func SecurityFile(textVal string) (bool, error) {
case ".mp4", ".avi", ".mov", ".wmv", ".flv", ".mkv":
fileInfo.FileType = "video"
default:
return false, errors.New("该类型无需安全检测")
return true, nil
}
err := securityScan(&fileInfo)
if err != nil {