拦截器修改

This commit is contained in:
haozq 2024-09-09 11:12:30 +08:00
parent d1247c930d
commit 315f81b22a
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class SysLoginService
String hisIp=redisUtil.getVal(username);
if(StringHelper.isNotEmpty(hisIp)){
if(ip.equals(hisIp)){
redisUtil.set("username",ip,times);
redisUtil.set(username,ip,times);
}else{
recordLogService.errorLogs(username,user.getUserId(),"用户登录","IP异常",1,1,"{'username':'"+username+"'",startTime);
}