1,'msg'=>'上传数据太大,请上传符合固定的尺寸大小']; } // if ($exception instanceof \Tymon\JWTAuth\Exceptions\TokenInvalidException) { // return ['error'=>1,'msg'=>'非法请求']; // } // if ($exception instanceof \Symfony\Component\Debug\Exception\FatalThrowableError) { // return ['error'=>1,'msg'=>'非法请求']; // } return parent::render($request, $exception); } }