瀏覽代碼

fixed:异常处理

刘学玺 3 月之前
父節點
當前提交
d183b53e5e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
         });
 
         // 模型未找到异常