refactor(storage): 修复对象存储路径拼接问题

This commit is contained in:
吴泽威
2025-01-19 16:59:55 +08:00
parent 336e580eb1
commit c3a7185100
3 changed files with 23 additions and 10 deletions

View File

@@ -125,7 +125,7 @@ public class LocalStorageStrategy implements StorageStrategy<LocalClient> {
String formatFileName = StorageUtils.formatFileName(fileName);
// 判断文件路径是否为空 为空给默认路径 格式 2024/12/30/
if (StrUtil.isEmpty(path)) {
path = StorageUtils.defaultPath();
path = StorageUtils.localDefaultPath();
}
// 判断文件夹是否存在 不存在则创建
Path folderPath = Paths.get(bucketName, path);