Commit fa5798ba authored by hj's avatar hj

更新

parent fa7e9203
...@@ -79,7 +79,7 @@ abstract class Controller extends BaseController ...@@ -79,7 +79,7 @@ abstract class Controller extends BaseController
protected function returnErrorExecptionResponse(\Exception $exception, string $message = '') protected function returnErrorExecptionResponse(\Exception $exception, string $message = '')
{ {
if($exception->getCode() == 500 || $exception->getCode() == 502){ if($exception->getCode() == 500 || $exception->getCode() == 502){
return Response::fail($exception->getMessage(),200); return Response::fail($exception->getMessage());
} }
return Response::fail($message == '' ? $exception->getMessage() : $message,200); return Response::fail($message == '' ? $exception->getMessage() : $message,200);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment