fixed:修复异常code

This commit is contained in:
JaguarJack 2020-09-09 11:35:01 +08:00
parent 763a05fa80
commit 818ffb2ce6

View File

@ -45,7 +45,7 @@ class Request extends \think\Request
if ($e instanceof TokenInvalidException) {
throw new FailedException('token 不合法', Code::LOST_LOGIN);
}
throw new FailedException('认证失败: '. $e->getMessage(), $e->getMessage());
throw new FailedException('认证失败: '. $e->getMessage(), $e->getCode());
}
return $user;