【7.6.0】【sys】【首页用户详情接口】完善详情接口,更新登录信息

pull/57/head
fengshuonan 2023-06-19 23:16:22 +08:00
parent e8aded49a5
commit e6fcedfb6f
1 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package cn.stylefeng.roses.kernel.sys.modular.login.service;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.stylefeng.roses.kernel.auth.api.SessionManagerApi;
import cn.stylefeng.roses.kernel.auth.api.context.LoginContext;
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser;
import cn.stylefeng.roses.kernel.rule.enums.YesOrNotEnum;
@ -61,6 +62,9 @@ public class UserIndexInfoService {
@Resource
private SysAppService sysAppService;
@Resource
private SessionManagerApi sessionManagerApi;
/**
*
*
@ -98,7 +102,7 @@ public class UserIndexInfoService {
this.fillWebSocketUrl(loginUser, userIndexInfo);
// 8. 更新用户的session信息因为可能更新了loginUser中的值
sessionManagerApi.updateSession(loginUser.getToken(), loginUser);
return userIndexInfo;
}