支持登录IP黑名单限制

This commit is contained in:
RuoYi
2023-02-21 10:31:54 +08:00
parent 1126e2234f
commit cd5556d188
10 changed files with 145 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ public class LogAspect
SysOperLog operLog = new SysOperLog();
operLog.setStatus(BusinessStatus.SUCCESS.ordinal());
// 请求的地址
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
String ip = IpUtils.getIpAddr();
operLog.setOperIp(ip);
operLog.setOperUrl(StringUtils.substring(ServletUtils.getRequest().getRequestURI(), 0, 255));
String username = SecurityUtils.getUsername();