mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-29 05:49:07 +08:00
fix: 计划任务执行周期校验修改 (#1277)
This commit is contained in:
parent
8f8369c989
commit
6b3093aa09
@ -443,7 +443,7 @@ function checkScript() {
|
|||||||
case 'perDay':
|
case 'perDay':
|
||||||
return row.hour >= 0 && row.hour < 24 && row.minute >= 0 && row.minute < 60;
|
return row.hour >= 0 && row.hour < 24 && row.minute >= 0 && row.minute < 60;
|
||||||
case 'perHour':
|
case 'perHour':
|
||||||
return row.minute > 0 && row.minute < 60;
|
return row.minute >= 0 && row.minute < 60;
|
||||||
case 'perNDay':
|
case 'perNDay':
|
||||||
return row.day > 0 && row.day < 366 && row.hour >= 0 && row.hour < 24 && row.minute >= 0 && row.minute < 60;
|
return row.day > 0 && row.day < 366 && row.hour >= 0 && row.hour < 24 && row.minute >= 0 && row.minute < 60;
|
||||||
case 'perNHour':
|
case 'perNHour':
|
||||||
|
Loading…
Reference in New Issue
Block a user