优化文件删除逻辑,同时删除文件和对应的MD5信息

This commit is contained in:
dftre 2024-10-10 17:44:22 +08:00
parent d6dea7eb1d
commit 3a6b3c9cad

View File

@ -118,6 +118,7 @@ public class FileOperateUtils {
* @throws IOException * @throws IOException
*/ */
public static final boolean deleteFile(String fileUrl) throws Exception { public static final boolean deleteFile(String fileUrl) throws Exception {
deleteFileAndMd5ByFilePath(fileUrl);
return fileService.deleteFile(fileUrl); return fileService.deleteFile(fileUrl);
} }