Browse Source

提现限制

xiongzhu 4 năm trước cách đây
mục cha
commit
73af6b425b

+ 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");
         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 + "次");
         }
         userBalanceService.preWithdraw(userId, amount);