liusuyi
2025-11-13 9c4b29fdf79de231ebbe15668ad40f6e229f8109
ard-framework/src/main/java/com/ard/framework/web/service/TokenService.java
@@ -248,4 +248,12 @@
    {
        return Constants.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);
    }
}