wesmiler %!s(int64=5) %!d(string=hai) anos
pai
achega
fcc750e368
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Exception/Handler/TokenValidExceptionHandler.php

+ 1 - 1
app/Exception/Handler/TokenValidExceptionHandler.php

@@ -40,7 +40,7 @@ class TokenValidExceptionHandler extends ExceptionHandler
 
             // 阻止异常冒泡
             $this->stopPropagation();
-            return $response->withStatus(500)->withBody(new SwooleStream($data));
+            return $response->withBody(new SwooleStream($data));
         }
 
         // 交给下一个异常处理器