|
@@ -40,7 +40,7 @@ public class UserLoginLogServiceImpl extends ServiceImpl<UserLoginLogMapper, Use
|
|
|
.build();
|
|
|
boolean result = super.save(loginLog);
|
|
|
if (result) {
|
|
|
- redisUtil.addToSet(RedisKeyConstant.IP_DATA_ASSAY_QUEUE, "LOGIN:" + loginLog.getId());
|
|
|
+ redisUtil.addToSet(RedisKeyConstant.IP_DATA_ASSAY_QUEUE, "LOGIN:" + loginLog.getId() + ":" + loginLog.getIp());
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
@@ -58,7 +58,7 @@ public class UserLoginLogServiceImpl extends ServiceImpl<UserLoginLogMapper, Use
|
|
|
.build();
|
|
|
boolean result = super.save(loginLog);
|
|
|
if (result) {
|
|
|
- redisUtil.addToSet(RedisKeyConstant.IP_DATA_ASSAY_QUEUE, "LOGIN:" + loginLog.getId());
|
|
|
+ redisUtil.addToSet(RedisKeyConstant.IP_DATA_ASSAY_QUEUE, "LOGIN:" + loginLog.getId() + ":" + loginLog.getIp());
|
|
|
}
|
|
|
return result;
|
|
|
}
|