From bc4582caf4aeae0497672af0a6f7f8da6b950aef Mon Sep 17 00:00:00 2001 From: hooper Date: Thu, 28 Oct 2021 11:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=C3=A4=C2=BF=E4=BF=AE=E5=A4=8D=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E5=A6=86=C3=A5?= =?UTF-8?q?=C3=A7=E5=A6=86=C3=A5=C3=A6=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/monitor/controller/Crontab.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catch/monitor/controller/Crontab.php b/catch/monitor/controller/Crontab.php index 36daa13..8c1b860 100644 --- a/catch/monitor/controller/Crontab.php +++ b/catch/monitor/controller/Crontab.php @@ -73,7 +73,9 @@ class Crontab extends CatchController */ public function update(Request $request, $id) { - new CronExpression($request->post('cron')); + if($request->post('cron')){ + new CronExpression($request->post('cron')); + } return CatchResponse::success($this->model->updateBy($id, $request->post())); }