Преглед на файлове

风控体系代码提交

zjy преди 1 месец
родител
ревизия
837c24a43c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      alien-store/src/main/java/shop/alien/store/service/LifeUserService.java

+ 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(","));