支持登录IP黑名单限制

This commit is contained in:
RuoYi
2023-02-20 12:54:02 +08:00
parent 99554659f0
commit ef0a29552e
7 changed files with 145 additions and 3 deletions

View File

@ -65,7 +65,7 @@ public class ShiroUtils
public static String getIp()
{
return getSubject().getSession().getHost();
return StringUtils.substring(getSubject().getSession().getHost(), 0, 128);
}
public static String getSessionId()