fix: 计划任务执行周期校验修改 (#1277)

This commit is contained in:
ssongliu 2023-06-07 15:59:28 +08:00 committed by GitHub
parent 8f8369c989
commit 6b3093aa09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ function checkScript() {
case 'perDay':
return row.hour >= 0 && row.hour < 24 && row.minute >= 0 && row.minute < 60;
case 'perHour':
return row.minute > 0 && row.minute < 60;
return row.minute >= 0 && row.minute < 60;
case 'perNDay':
return row.day > 0 && row.day < 366 && row.hour >= 0 && row.hour < 24 && row.minute >= 0 && row.minute < 60;
case 'perNHour':