|
|
|
@ -177,9 +177,8 @@ public class SchedulerServiceImpl extends BaseServiceImpl implements SchedulerSe
|
|
|
|
|
|
|
|
|
|
scheduleObj.setStartTime(scheduleParam.getStartTime()); |
|
|
|
|
scheduleObj.setEndTime(scheduleParam.getEndTime()); |
|
|
|
|
if (!org.quartz.CronExpression.isValidExpression(scheduleParam.getCrontab())) { |
|
|
|
|
logger.error("{} verify failure", scheduleParam.getCrontab()); |
|
|
|
|
|
|
|
|
|
if (!CronUtils.isValidExpression(scheduleParam.getCrontab())) { |
|
|
|
|
logger.error("Schedule crontab verify failure, crontab:{}.", scheduleParam.getCrontab()); |
|
|
|
|
putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, scheduleParam.getCrontab()); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
@ -664,7 +663,8 @@ public class SchedulerServiceImpl extends BaseServiceImpl implements SchedulerSe
|
|
|
|
|
|
|
|
|
|
schedule.setStartTime(scheduleParam.getStartTime()); |
|
|
|
|
schedule.setEndTime(scheduleParam.getEndTime()); |
|
|
|
|
if (!org.quartz.CronExpression.isValidExpression(scheduleParam.getCrontab())) { |
|
|
|
|
if (!CronUtils.isValidExpression(scheduleParam.getCrontab())) { |
|
|
|
|
logger.error("Schedule crontab verify failure, crontab:{}.", scheduleParam.getCrontab()); |
|
|
|
|
putMsg(result, Status.SCHEDULE_CRON_CHECK_FAILED, scheduleParam.getCrontab()); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|