mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-04 20:00:44 +00:00
支持登录IP黑名单限制
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user