Procházet zdrojové kódy

fixed:异常处理

刘学玺 před 3 měsíci
rodič
revize
d183b53e5e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
         });
 
         // 模型未找到异常