刘学玺 преди 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());
         });
 
         // 业务异常