diff --git a/class/core/crontab_api.py b/class/core/crontab_api.py index 502a3deba..161107fd1 100755 --- a/class/core/crontab_api.py +++ b/class/core/crontab_api.py @@ -146,7 +146,7 @@ class crontab_api: return False, '分钟不能为空!' if params['type'] == 'minute-n': - if params['minute'] == '': + if params['where1'] == '': return False, '分钟不能为空!' if params['type'] == 'week': diff --git a/route/static/app/crontab.js b/route/static/app/crontab.js index 5853b18bc..c71794e0f 100755 --- a/route/static/app/crontab.js +++ b/route/static/app/crontab.js @@ -279,7 +279,7 @@ function planAdd(){ if (type == 'minute-n'){ var where1 = $("#ptime input[name='where1']").val(); - $("#set-Config input[name='minute']").val(where1); + $("#set-Config input[name='where1']").val(where1); } if (type == 'day-n'){