liusuyi
2026-01-19 3c8d6b8e60f02b9a40fc5acd4dc6c34a6b594eb6
ard-framework/src/main/java/com/ard/framework/web/service/TokenService.java
@@ -246,6 +246,14 @@
    private String getUserIdKey(Long userId)
    {
        return Constants.LOGIN_USERID_KEY + userId;
        return CacheConstants.LOGIN_USERID_KEY + userId;
    }
    public LoginUser getLoginUserByUserId(Long userId) {
        String userIdKey = getUserIdKey(userId);
        String tokenKey = redisCache.getCacheObject(userIdKey);
        if (tokenKey == null) return null;
        return redisCache.getCacheObject(tokenKey);
    }
}