|
@@ -224,7 +224,11 @@ public class FileStoreUtil {
|
|
FileStore fileStore = fileService.getFileStore(type);
|
|
FileStore fileStore = fileService.getFileStore(type);
|
|
return fileStore.getPresignedUrl(objectPath, Duration.ofMinutes(5L));
|
|
return fileStore.getPresignedUrl(objectPath, Duration.ofMinutes(5L));
|
|
} else {
|
|
} else {
|
|
- return dictionaryConfig.fssPrivateDomain().getServer() + SystemConstant.ORG_SPLIT + objectPath;
|
|
|
|
|
|
+ if (objectPath.startsWith(SystemConstant.ORG_SPLIT)) {
|
|
|
|
+ return dictionaryConfig.fssPrivateDomain().getServer() + objectPath;
|
|
|
|
+ } else {
|
|
|
|
+ return dictionaryConfig.fssPrivateDomain().getServer() + SystemConstant.ORG_SPLIT + objectPath;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
throw ExceptionResultEnum.ERROR.exception("文件存储store类型不存在");
|
|
throw ExceptionResultEnum.ERROR.exception("文件存储store类型不存在");
|