fix: 更新AuthServiceImpl实现

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-12 02:03:12 +08:00
parent c9e9a1a4c7
commit 93759b4a1a

View File

@@ -107,7 +107,7 @@ public class AuthServiceImpl implements AuthService {
String cacheValue = stringRedisTemplate.opsForValue().get(cacheKey); String cacheValue = stringRedisTemplate.opsForValue().get(cacheKey);
if (cacheValue == null || !cacheValue.equals(refreshToken)) { if (cacheValue == null || !cacheValue.equals(refreshToken)) {
throw new ServiceException("Refresh Token 已失效"); throw new ServiceException(ErrorCode.NO_AUTH_ERROR);
} }
// 再次签发新的 Access Token // 再次签发新的 Access Token