1. 自动登出时,记录的日志,增加 user_id 和 user_type 字段
parent
024d44cea1
commit
d6040214b8
|
@ -86,7 +86,8 @@ public class SysUserSessionServiceImpl implements SysUserSessionService {
|
||||||
SysLoginLogCreateReqDTO reqDTO = new SysLoginLogCreateReqDTO();
|
SysLoginLogCreateReqDTO reqDTO = new SysLoginLogCreateReqDTO();
|
||||||
reqDTO.setLogType(SysLoginLogTypeEnum.LOGOUT_TIMEOUT.getType());
|
reqDTO.setLogType(SysLoginLogTypeEnum.LOGOUT_TIMEOUT.getType());
|
||||||
reqDTO.setTraceId(TracerUtils.getTraceId());
|
reqDTO.setTraceId(TracerUtils.getTraceId());
|
||||||
reqDTO.setUserType(UserTypeEnum.ADMIN.getValue());
|
reqDTO.setUserId(timeoutSessionDO.getUserId());
|
||||||
|
reqDTO.setUserType(timeoutSessionDO.getUserType());
|
||||||
reqDTO.setUsername(timeoutSessionDO.getUsername());
|
reqDTO.setUsername(timeoutSessionDO.getUsername());
|
||||||
reqDTO.setUserAgent(timeoutSessionDO.getUserAgent());
|
reqDTO.setUserAgent(timeoutSessionDO.getUserAgent());
|
||||||
reqDTO.setUserIp(timeoutSessionDO.getUserIp());
|
reqDTO.setUserIp(timeoutSessionDO.getUserIp());
|
||||||
|
|
Loading…
Reference in New Issue