Commit 9049b1bf authored by hj's avatar hj

更新

parent 34e17f08
......@@ -79,9 +79,9 @@ abstract class Controller extends BaseController
protected function returnErrorExecptionResponse(\Exception $exception, string $message = '')
{
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);
}
protected function checkCustomerType($customerCode,$type)
......
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