|
|
@@ -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);
|