refactor(music-houduan): 删除冗余的文件上传代码

- 移除了注释掉的创建目录代码块
-优化了文件上传路径的创建逻辑
This commit is contained in:
ikmkj
2025-07-26 02:48:48 +08:00
parent fa41955eb7
commit ea48c39560

View File

@@ -163,12 +163,6 @@ public class FileServiceImpl implements FileService {
String extension = getFileExtension(originalFilename);
String fileName = UUID.randomUUID().toString() + "." + extension;
// // 创建目录
// File dir = new File(uploadPath + directory);
// if (!dir.exists()) {
// dir.mkdirs();
// }
File root = new File(uploadPath); // /uploads
File bizDir = new File(root, directory); // /uploads/bizType
if (!bizDir.exists()) {