Browse Source

Merge branch 'dev'

xiongzhu 4 years ago
parent
commit
46de2c8f15

+ 1 - 1
src/main/java/com/izouma/nineth/service/WithdrawApplyService.java

@@ -61,7 +61,7 @@ public class WithdrawApplyService {
         }
         }
         int limit = sysConfigService.getInt("daily_withdraw_limit");
         int limit = sysConfigService.getInt("daily_withdraw_limit");
         if (withdrawApplyRepo.countByUserIdAndCreatedAtBetween(userId,
         if (withdrawApplyRepo.countByUserIdAndCreatedAtBetween(userId,
-                LocalDate.now().atStartOfDay(), LocalDate.now().atTime(LocalTime.MAX)) > limit) {
+                LocalDate.now().atStartOfDay(), LocalDate.now().atTime(LocalTime.MAX)) >= limit) {
             throw new BusinessException("每天只能申请提现" + limit + "次");
             throw new BusinessException("每天只能申请提现" + limit + "次");
         }
         }
         userBalanceService.preWithdraw(userId, amount);
         userBalanceService.preWithdraw(userId, amount);