|
@@ -763,7 +763,11 @@ public class SystemConstant {
|
|
|
FileStoreUtil fileStoreUtil = SpringContextHolder.getBean(FileStoreUtil.class);
|
|
|
boolean oss = dictionaryConfig.sysDomain().isOss();
|
|
|
if (oss || (!oss && dictionaryConfig.fssPublicDomain().getConfig().startsWith(SystemConstant.START_PARENT))) {
|
|
|
- filePath = fileStoreUtil.getPrivateUrl(filePath, UploadFileEnum.FILE.getFssType());
|
|
|
+ if (!filePath.startsWith("http") || !filePath.startsWith("https")) {
|
|
|
+ return filePath;
|
|
|
+ } else {
|
|
|
+ filePath = fileStoreUtil.getPrivateUrl(filePath, UploadFileEnum.FILE.getFssType());
|
|
|
+ }
|
|
|
} else {
|
|
|
if (filePath.contains(dictionaryConfig.fssPublicDomain().getServer())) {
|
|
|
filePath = filePath.substring(filePath.indexOf(dictionaryConfig.fssPublicDomain().getServer()), filePath.length());
|