Commit 83bfb6073bd447baa24abcd4cabeb39f5ff090aa
Committed by
Gitee
1 parent
82cf4e17
纠正删除刷新临牌时,调用mapper错误。
纠正删除刷新临牌时,调用mapper错误。
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/oauth2/OAuth2TokenServiceImpl.java
| @@ -76,7 +76,7 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService { | @@ -76,7 +76,7 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService { | ||
| 76 | 76 | ||
| 77 | // 已过期的情况下,删除刷新令牌 | 77 | // 已过期的情况下,删除刷新令牌 |
| 78 | if (DateUtils.isExpired(refreshTokenDO.getExpiresTime())) { | 78 | if (DateUtils.isExpired(refreshTokenDO.getExpiresTime())) { |
| 79 | - oauth2AccessTokenMapper.deleteById(refreshTokenDO.getId()); | 79 | + oauth2RefreshTokenMapper.deleteById(refreshTokenDO.getId()); |
| 80 | throw exception0(GlobalErrorCodeConstants.UNAUTHORIZED.getCode(), "刷新令牌已过期"); | 80 | throw exception0(GlobalErrorCodeConstants.UNAUTHORIZED.getCode(), "刷新令牌已过期"); |
| 81 | } | 81 | } |
| 82 | 82 |