|
@@ -612,9 +612,8 @@ public class TeachcloudCommonServiceImpl implements TeachcloudCommonService {
|
|
fileTempList.add(fileTemp);
|
|
fileTempList.add(fileTemp);
|
|
file = fileStoreUtil.ossDownload(filePath, fileTemp, uploadType.getFssType());
|
|
file = fileStoreUtil.ossDownload(filePath, fileTemp, uploadType.getFssType());
|
|
} else {
|
|
} else {
|
|
- if (Objects.nonNull(dictionaryConfig.fssLocalFileDomain()) && !StringUtils.isBlank(dictionaryConfig.fssLocalFileDomain().getConfig()) && !filePath.contains(dictionaryConfig.fssLocalFileDomain().getConfig())) {
|
|
|
|
- localPath = localPath.add(dictionaryConfig.fssLocalFileDomain().getConfig()).add(File.separator).add(filePath);
|
|
|
|
- file = new File(localPath.toString());
|
|
|
|
|
|
+ if (Objects.nonNull(dictionaryConfig.fssLocalFileDomain()) && !StringUtils.isBlank(dictionaryConfig.fssLocalFileDomain().getConfig())) {
|
|
|
|
+ file = new File(filePath);
|
|
} else {
|
|
} else {
|
|
String suffix = filePath.substring(filePath.lastIndexOf(".")).toLowerCase();
|
|
String suffix = filePath.substring(filePath.lastIndexOf(".")).toLowerCase();
|
|
File fileTemp = SystemConstant.getFileTempVar(suffix);
|
|
File fileTemp = SystemConstant.getFileTempVar(suffix);
|