|
@@ -1030,12 +1030,11 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
if (Objects.nonNull(attachmentType) && !Objects.equals(attachmentType, SystemConstant.LOCAL)) {
|
|
|
file = fileStoreUtil.ossDownload(jsonObject.getString(SystemConstant.PDF_PATH), file, UploadFileEnum.PDF.getFssType());
|
|
|
} else {
|
|
|
- String path = SystemConstant.getLocalFilePath(jsonObject.getString(SystemConstant.PDF_PATH));
|
|
|
File sourceFile = null;
|
|
|
if (dictionaryConfig.fssPrivateDomain().getConfig().startsWith(SystemConstant.START_PARENT) || dictionaryConfig.fssPublicDomain().getConfig().startsWith(SystemConstant.START_PARENT)) {
|
|
|
sourceFile = new File(dictionaryConfig.fssPrivateDomain().getConfig(), jsonObject.getString(SystemConstant.PDF_PATH));
|
|
|
} else {
|
|
|
- sourceFile = new File(path);
|
|
|
+ sourceFile = new File(jsonObject.getString(SystemConstant.PDF_PATH));
|
|
|
}
|
|
|
FileUtils.copyFile(sourceFile, file);
|
|
|
}
|
|
@@ -1064,12 +1063,11 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
if (Objects.nonNull(attachmentType) && !Objects.equals(attachmentType, SystemConstant.LOCAL)) {
|
|
|
file = fileStoreUtil.ossDownload(jsonObject.getString(SystemConstant.PATH), file, uploadFileEnum.getFssType());
|
|
|
} else {
|
|
|
- String path = SystemConstant.getLocalFilePath(jsonObject.getString(SystemConstant.PATH));
|
|
|
File sourceFile = null;
|
|
|
if (dictionaryConfig.fssPrivateDomain().getConfig().startsWith(SystemConstant.START_PARENT) || dictionaryConfig.fssPublicDomain().getConfig().startsWith(SystemConstant.START_PARENT)) {
|
|
|
sourceFile = new File(dictionaryConfig.fssPrivateDomain().getConfig(), jsonObject.getString(SystemConstant.PATH));
|
|
|
} else {
|
|
|
- sourceFile = new File(path);
|
|
|
+ sourceFile = new File(jsonObject.getString(SystemConstant.PATH));
|
|
|
}
|
|
|
FileUtils.copyFile(sourceFile, file);
|
|
|
}
|