Commit 4f7d00bb authored by 赵啸非's avatar 赵啸非

修改门户登录redistoken生成方案

parent d6cebe55
......@@ -89,8 +89,8 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
ret.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
ret.put(KEY_RESULT_MSG, "用户登录系统成功!");
//测试模糊获取所有redis中当前用户token
Set<String> hkeys = cacheService.hkeys(Constant.LOGIN_TOKEN_KEY + userEntity.getId() + ":*");
//测试模糊获取所有redis中当前用户token user:login:tokens:1:
Set<String> hkeys = cacheService.scan(Constant.LOGIN_TOKEN_KEY + userEntity.getId());
log.info("loginKeys:{}",JSON.toJSONString(hkeys));
return ret.toJSONString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment