From d852c83d6e1f684581f3a427acaa3a2eb8cf23c3 Mon Sep 17 00:00:00 2001 From: liapples Date: Thu, 12 Aug 2021 10:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=EF=BC=8C=E4=BB=A5=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Exceptions/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 2faf9c9..b8db840 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -76,7 +76,7 @@ class Handler extends ExceptionHandler ]); } //TypeError && ParseError && Exception - if ($e instanceof \TypeError || $e instanceof \ParseError || $e instanceof \Exception) { + /*if ($e instanceof \TypeError || $e instanceof \ParseError || $e instanceof \Exception) { return response()->json([ 'code' => -1, 'msg' => $e->getMessage(), @@ -96,7 +96,7 @@ class Handler extends ExceptionHandler 'file' => $e->getFile(), 'line' => $e->getLine(), ]); - } + }*/ return parent::render($request, $e); } }