From bae186d82a8f72dbfb7ab00ef88e37af9582c834 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sun, 20 Sep 2020 12:05:19 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E7=94=A8=E6=88=B7=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/monitor/controller/Service.php | 10 ++++++++++ catch/permissions/request/CreateRequest.php | 2 +- catch/permissions/request/UpdateRequest.php | 2 +- extend/catcher/base/CatchRequest.php | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 catch/monitor/controller/Service.php diff --git a/catch/monitor/controller/Service.php b/catch/monitor/controller/Service.php new file mode 100644 index 0000000..ef90e0a --- /dev/null +++ b/catch/monitor/controller/Service.php @@ -0,0 +1,10 @@ +message($this->message())->check(request()->param(), $this->rules())) { + $message = $this->message(); + if (!$validate->message(empty($message) ? [] : $message)->check(request()->param(), $this->rules())) { throw new FailedException($validate->getError()); } } catch (\Exception $e) {