From 5edb3befcaa375cbf3f7b720d42c8c81c49ca82b Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Fri, 8 Apr 2022 11:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/adminapi/AdminApiExceptionHandle.php | 6 +++--- crmeb/app/api/ApiExceptionHandle.php | 6 +++--- crmeb/app/kefuapi/KefuApiExceptionHandle.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crmeb/app/adminapi/AdminApiExceptionHandle.php b/crmeb/app/adminapi/AdminApiExceptionHandle.php index 495b82ad6..29f026d02 100644 --- a/crmeb/app/adminapi/AdminApiExceptionHandle.php +++ b/crmeb/app/adminapi/AdminApiExceptionHandle.php @@ -42,7 +42,7 @@ class AdminApiExceptionHandle extends Handle * @param Throwable $exception * @return void */ - public function report(Throwable $exception):void + public function report(Throwable $exception): void { if (!$this->isIgnoreReport($exception)) { $data = [ @@ -72,10 +72,10 @@ class AdminApiExceptionHandle extends Handle * Render an exception into an HTTP response. * @access public * @param \think\Request $request - * @param Throwable $e + * @param Throwable $e * @return Response */ - public function render($request, Throwable $e):Response + public function render($request, Throwable $e): Response { $massageData = Env::get('app_debug', false) ? [ 'file' => $e->getFile(), diff --git a/crmeb/app/api/ApiExceptionHandle.php b/crmeb/app/api/ApiExceptionHandle.php index a4ac3b060..818e1f8d3 100644 --- a/crmeb/app/api/ApiExceptionHandle.php +++ b/crmeb/app/api/ApiExceptionHandle.php @@ -42,7 +42,7 @@ class ApiExceptionHandle extends Handle * @param Throwable $exception * @return void */ - public function report(Throwable $exception):void + public function report(Throwable $exception): void { if (!$this->isIgnoreReport($exception)) { $data = [ @@ -72,10 +72,10 @@ class ApiExceptionHandle extends Handle * Render an exception into an HTTP response. * @access public * @param \think\Request $request - * @param Throwable $e + * @param Throwable $e * @return Response */ - public function render($request, Throwable $e):Response + public function render($request, Throwable $e): Response { // 添加自定义异常处理机制 if ($e instanceof DbException) { diff --git a/crmeb/app/kefuapi/KefuApiExceptionHandle.php b/crmeb/app/kefuapi/KefuApiExceptionHandle.php index 2a5356e00..95a5af5b4 100644 --- a/crmeb/app/kefuapi/KefuApiExceptionHandle.php +++ b/crmeb/app/kefuapi/KefuApiExceptionHandle.php @@ -42,7 +42,7 @@ class KefuApiExceptionHandle extends Handle * @param Throwable $exception * @return void */ - public function report(Throwable $exception):void + public function report(Throwable $exception): void { if (!$this->isIgnoreReport($exception)) { $data = [ @@ -72,10 +72,10 @@ class KefuApiExceptionHandle extends Handle * Render an exception into an HTTP response. * @access public * @param \think\Request $request - * @param Throwable $e + * @param Throwable $e * @return Response */ - public function render($request, Throwable $e):Response + public function render($request, Throwable $e): Response { $massageData = Config::get('app_debug', false) ? [ 'file' => $e->getFile(),