Browse Source

fixed:异常处理

刘学玺 3 months ago
parent
commit
d183b53e5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Exceptions/Handler.php

+ 1 - 1
app/Exceptions/Handler.php

@@ -99,7 +99,7 @@ class Handler extends ExceptionHandler
 
         // 404异常
         $this->renderable(function (NotFoundHttpException $e) {
-            return $this->formatJsonResponse(404, '请求的资源不存在', Response::HTTP_NOT_FOUND);
+            return $this->formatJsonResponse(Response::HTTP_NOT_FOUND, '请求的资源不存在', 200);
         });
 
         // 模型未找到异常