Parcourir la source

去除一分钱测试

赵冬冬 il y a 4 ans
Parent
commit
c0b8745afd

+ 7 - 6
carbon-h5/carbon-h5-service/src/main/java/com/hcloud/microserver/h5/controller/web/WechatAppPayController.java

@@ -85,12 +85,13 @@ public class WechatAppPayController extends BaseController {
         //元转成分
         money = money.multiply(new BigDecimal(100));
         int i = money.intValue();
-        if ("test".equals(tradeType)) {
-            //测试环境一分钱
-            orderRequest.setTotalFee(1);
-        } else {
-            orderRequest.setTotalFee(i);
-        }
+//        if ("test".equals(tradeType)) {
+//            //测试环境一分钱
+//            orderRequest.setTotalFee(1);
+//        } else {
+//
+//        }
+        orderRequest.setTotalFee(i);
         //终端ip
         String ipAddress = getIpAddress(request);
         orderRequest.setSpbillCreateIp(ipAddress);