From d40af055981e140b55634a9efe3f613909e364be Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Mon, 8 May 2023 21:34:27 +0800 Subject: [PATCH] editor --- app/Exceptions/Handler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 7c3136f..03fffb7 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -44,11 +44,11 @@ class Handler extends ExceptionHandler */ public function register() { - $this->renderable(function (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $e, Request $request) { - if ($request->acceptsJson()) { - return response()->json(['status' => 404, 'msg' => '资源不存在', 'data' => null], 200); - } - }); + // $this->renderable(function (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $e, Request $request) { + // if ($request->acceptsJson()) { + // return response()->json(['status' => 404, 'msg' => '资源不存在', 'data' => null], 200); + // } + // }); $this->renderable(function (\Illuminate\Validation\ValidationException $e, Request $request) { if ($request->acceptsJson()) { $errors = $e->validator->errors();