fix:退出登录日志记录

This commit is contained in:
2026-04-14 17:33:16 +08:00
parent a7be490dda
commit f881da9c90

View File

@@ -19,6 +19,7 @@ package com.honeycombis.honeycom.auth.support.handler;
import com.honeycombis.honeycom.admin.api.dto.SysLogDTO;
import com.honeycombis.honeycom.common.core.constant.SecurityConstants;
import com.honeycombis.honeycom.common.core.util.WebUtils;
import com.honeycombis.honeycom.common.data.tenant.TenantContextHolder;
import com.honeycombis.honeycom.common.log.util.SysLogUtils;
import com.honeycombis.honeycom.log.api.feign.RemoteHoneyLogService;
import jakarta.annotation.Resource;
@@ -74,6 +75,7 @@ public class HoneycomLogoutSuccessEventHandler implements ApplicationListener<Lo
logVo.setServiceId(authentication.getCredentials().toString());
}
logVo.setCreateBy(String.valueOf(authentication.getPrincipal()));
logVo.setTenantId(TenantContextHolder.getTenantId());
remoteLogService.saveLog(logVo, SecurityConstants.FROM_IN);
}