1. 自动登出时,记录的日志,增加 user_id 和 user_type 字段

pull/2/head
YunaiV 2021-10-11 07:51:33 +08:00
parent 024d44cea1
commit d6040214b8
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ public class SysUserSessionServiceImpl implements SysUserSessionService {
SysLoginLogCreateReqDTO reqDTO = new SysLoginLogCreateReqDTO();
reqDTO.setLogType(SysLoginLogTypeEnum.LOGOUT_TIMEOUT.getType());
reqDTO.setTraceId(TracerUtils.getTraceId());
reqDTO.setUserType(UserTypeEnum.ADMIN.getValue());
reqDTO.setUserId(timeoutSessionDO.getUserId());
reqDTO.setUserType(timeoutSessionDO.getUserType());
reqDTO.setUsername(timeoutSessionDO.getUsername());
reqDTO.setUserAgent(timeoutSessionDO.getUserAgent());
reqDTO.setUserIp(timeoutSessionDO.getUserIp());