修改图标判断方法

This commit is contained in:
lvleigang 2024-08-28 11:00:11 +08:00
parent 45d37f1339
commit a7b25fa268
2 changed files with 6 additions and 3 deletions

View File

@ -19,8 +19,11 @@ spring:
savefile: savefile:
# 文件保存路径 # 文件保存路径
path: /home/webservice/zt/file path: /home/webservice/zt/file
pluginpath: D:/local/plugin/ # path: D:\webservice\file
tomcatpath: E:\apache-tomcat-9.0.27\webapps\kangarooDataCenterV3\WEB-INF\classes\ # pluginpath: D:\webservice\plugin
pluginpath: /home/webservice/zt/plugin
# tomcatpath: D:\apache-tomcat-9.0.69\webapps\kangarooDataCenter\WEB-INF\classes\
tomcatpath: /home/webservice/zt/tomcatV3/webapps/kangarooDataCenterV3/WEB-INF/classes/
cbs8: cbs8:
appId: 1P4AGrpz appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a

View File

@ -90,7 +90,7 @@ public class FileDownloadServiceImpl extends BaseService< FileDownloadEntity,Lo
} }
/** 拼接文件路径*/ /** 拼接文件路径*/
String filePath = ""; String filePath = "";
if(fileDownloadEntity.getFileType().equals("2")){ if(fileDownloadEntity.getFileType() != null && fileDownloadEntity.getFileType().equals("2")){
filePath = PLUGINPATH + fileDownloadEntity.getFilepath().replace("/",File.separator).replace("\\",File.separator); filePath = PLUGINPATH + fileDownloadEntity.getFilepath().replace("/",File.separator).replace("\\",File.separator);
}else{ }else{
filePath = DSK + fileDownloadEntity.getFilepath().replace("/",File.separator).replace("\\",File.separator); filePath = DSK + fileDownloadEntity.getFilepath().replace("/",File.separator).replace("\\",File.separator);