刘学玺 пре 4 месеци
родитељ
комит
68ead9018a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Exceptions/Handler.php

+ 1 - 1
app/Exceptions/Handler.php

@@ -101,7 +101,7 @@ class Handler extends ExceptionHandler
 
         // HTTP异常
         $this->renderable(function (HttpException $e) {
-            return $this->formatJsonResponse($e->getStatusCode(), $e->getMessage(), $e->getStatusCode());
+            return $this->formatJsonResponse(200, $e->getMessage(), $e->getStatusCode());
         });
 
         // 业务异常