字典类型加上组织字段

This commit is contained in:
秦鸿展
2026-05-14 14:18:51 +08:00
parent c7c536782f
commit f8c6be9db8
11 changed files with 289 additions and 35 deletions
@@ -80,7 +80,15 @@ public class LogAspect
// 请求的地址
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
operLog.setOperIp(ip);
operLog.setOperLocation(StrUtil.isNotEmpty(operLog.getOperIp()) ? IpUtil.getLocationSplicing(operLog.getOperIp()) : "");
try
{
operLog.setOperLocation(StrUtil.isNotEmpty(operLog.getOperIp()) ? IpUtil.getLocationSplicing(operLog.getOperIp()) : "");
}
catch (Throwable t)
{
log.warn("操作日志 IP 归属解析跳过: {}", t.getMessage());
operLog.setOperLocation("");
}
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
LoginUser loginUser = SecurityUtils.getLoginUser();
if (loginUser != null){