Przeglądaj źródła

Merge remote-tracking branch 'origin/sit' into sit

ssk 1 miesiąc temu
rodzic
commit
3a73aa7a6f

+ 1 - 1
alien-store/src/main/java/shop/alien/store/service/LifeUserService.java

@@ -345,7 +345,7 @@ public class LifeUserService extends ServiceImpl<LifeUserMapper, LifeUser> {
                 String endDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
                 List<LifeUserLog> lsit = lifeUserLogMapper.getLifeUserLogByDate(startDate, endDate, macIp);
 
-                if (lsit.size() > riskControlProperties.getAccountAbnormal().getRegCount24h() && !isViolation(startDate, endDate, macIp, user.getId())) {
+                if (lsit.size() >= riskControlProperties.getAccountAbnormal().getRegCount24h() && !isViolation(startDate, endDate, macIp, user.getId())) {
                     String detailInfo = lsit.stream()
                             .map(row -> row.getUserId().toString())
                             .collect(Collectors.joining(","));