Commit 46ca5659 by guominglei

设置默认值

parent 6aa0049f
...@@ -141,7 +141,7 @@ public class ApiFlowServiceImpl implements ApiFlowService { ...@@ -141,7 +141,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}else { }else {
flow.setRepeatCount(-1); flow.setRepeatCount(-1);
} }
flow.setScheduleFollow(pluginFlow.getConfig().getScheduleFollow()); flow.setScheduleFollow(StringUtils.isEmpty(pluginFlow.getConfig().getScheduleFollow()) ? "1" : pluginFlow.getConfig().getScheduleFollow());
flow.setFlowCron(pluginFlow.getConfig().getFlowCron()); flow.setFlowCron(pluginFlow.getConfig().getFlowCron());
flow.setTriggerNextTime(StringUtils.isEmpty(pluginFlow.getConfig().getFlowCron()) ? null : new CronExpression(pluginFlow.getConfig().getFlowCron()).getNextValidTimeAfter(new Date()).getTime()); flow.setTriggerNextTime(StringUtils.isEmpty(pluginFlow.getConfig().getFlowCron()) ? null : new CronExpression(pluginFlow.getConfig().getFlowCron()).getNextValidTimeAfter(new Date()).getTime());
//设置超时时间,未设置默认30分钟 //设置超时时间,未设置默认30分钟
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment