xiongzhu 3 years ago
parent
commit
a63a35c204
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/izouma/nineth/service/OrderPayService.java

+ 3 - 3
src/main/java/com/izouma/nineth/service/OrderPayService.java

@@ -439,9 +439,9 @@ public class OrderPayService {
         if (amount.compareTo(minAmount) < 0) {
             throw new BusinessException("充值金额不能小于" + minAmount);
         }
-//        if (amount.compareTo(new BigDecimal("50000")) > 0) {
-//            throw new BusinessException("充值金额不能大于50000");
-//        }
+        if (amount.compareTo(new BigDecimal("50000")) > 0) {
+            throw new BusinessException("充值金额不能大于50000");
+        }
         RechargeOrder order = RechargeOrder.builder()
                 .id(snowflakeIdWorker.nextId())
                 .userId(userId)