修改异常信息
This commit is contained in:
@@ -38,7 +38,7 @@ class Request extends \think\Request
|
||||
if ($e instanceof TokenInvalidException) {
|
||||
throw new FailedException('token 不合法', Code::LOST_LOGIN);
|
||||
}
|
||||
throw new FailedException('auth failed', Code::LOST_LOGIN);
|
||||
throw new FailedException('认证失败: '. $e->getMessage(), Code::LOST_LOGIN);
|
||||
}
|
||||
|
||||
return $user;
|
||||
|
Reference in New Issue
Block a user