diff --git a/catch/monitor/controller/Crontab.php b/catch/monitor/controller/Crontab.php index 36daa132ac7d5b0c1d826719cf8e707e201226c6..8c1b8603320dc0feb329164a8fdfad5b57d89b36 100644 --- a/catch/monitor/controller/Crontab.php +++ b/catch/monitor/controller/Crontab.php @@ -73,7 +73,9 @@ public function read($id) */ 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())); }