From 70b891e2cc069568c887d20e5f4917469c2732e2 Mon Sep 17 00:00:00 2001 From: hooper Date: Wed, 27 Oct 2021 18:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=9B=B4=E6=96=B0=E7=8A=B6=E6=80=81=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/monitor/controller/Crontab.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/catch/monitor/controller/Crontab.php b/catch/monitor/controller/Crontab.php index 36daa132..7ad1b5d9 100644 --- a/catch/monitor/controller/Crontab.php +++ b/catch/monitor/controller/Crontab.php @@ -73,7 +73,10 @@ public function read($id) */ public function update(Request $request, $id) { - new CronExpression($request->post('cron')); + $post = $request->post(); + if(isset($post['cron'])){ + new CronExpression($request->post('cron')); + } return CatchResponse::success($this->model->updateBy($id, $request->post())); } -- Gitee