refactor(backend): update file hash calculation from MD5 to SHA1 and rename related error handling

This commit is contained in:
keven1024
2026-04-08 23:48:07 +08:00
parent ae2fbcc216
commit 907f77aa66
4 changed files with 8 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ func GenStandardFile(filePath string, mimeType string) (GenStandardFileReturn, e
}
fileSize := fileInfo.Size()
fileHash, err := u.GetFileMd5(file)
fileHash, err := u.GetFileSHA1(file)
if err != nil {
return GenStandardFileReturn{}, err
}