!180 纠正删除刷新临牌时,调用mapper错误。

Merge pull request !180 from jinbb/N/A
This commit is contained in:
芋道源码 2022-05-27 11:53:16 +00:00 committed by Gitee
commit 68a0b381c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -76,7 +76,7 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService {
// 已过期的情况下删除刷新令牌 // 已过期的情况下删除刷新令牌
if (DateUtils.isExpired(refreshTokenDO.getExpiresTime())) { if (DateUtils.isExpired(refreshTokenDO.getExpiresTime())) {
oauth2AccessTokenMapper.deleteById(refreshTokenDO.getId()); oauth2RefreshTokenMapper.deleteById(refreshTokenDO.getId());
throw exception0(GlobalErrorCodeConstants.UNAUTHORIZED.getCode(), "刷新令牌已过期"); throw exception0(GlobalErrorCodeConstants.UNAUTHORIZED.getCode(), "刷新令牌已过期");
} }