Skip to content

Commit

Permalink
用已经定义的配置值
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwenzea committed Nov 28, 2023
1 parent 693c658 commit d03b726
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.webank.wedatasphere.streamis.jobmanager.launcher.job.conf.JobConf;
import com.webank.wedatasphere.streamis.jobmanager.manager.entity.StreamisFile;
import com.webank.wedatasphere.streamis.jobmanager.manager.exception.FileException;
import com.webank.wedatasphere.streamis.jobmanager.manager.exception.FileExceptionManager;
Expand Down Expand Up @@ -96,7 +97,7 @@ public Message upload(HttpServletRequest req,
}

if (!ReaderUtils.isValidFileFormat(fileName)){
return Message.warn("file should only yaml|text|jar|properties|txt (仅允许yaml|text|jar|properties|txt格式)");
return Message.warn("file should only "+ JobConf.STREAMIS_CHECK_FILE_FORMAT().getHotValue() +"(仅允许 " +JobConf.STREAMIS_CHECK_FILE_FORMAT().getHotValue()+"格式)");
}
if (!updateWhenExists) {
ProjectFiles projectFiles = projectManagerService.selectFile(fileName, version, projectName);
Expand Down

0 comments on commit d03b726

Please sign in to comment.