lhm hace 3 años
padre
commit
c98dc362f0

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/cuspay/biz/wx/WxCusDeclareBiz.java

@@ -117,7 +117,7 @@ public class WxCusDeclareBiz extends AbstractCusDeclareBiz implements CuspayBiz
             // 微信支付商户号
             wxCbPayDoc.setMchId(mchid);
             // 商户订单号,商户系统内部订单号
-            wxCbPayDoc.setOutTradeNo(params.get("orderSn").toString());
+            wxCbPayDoc.setOutTradeNo(params.get("outTradeNo").toString());
             // 微信支付订单号
             wxCbPayDoc.setTransactionId(params.get("transactionId").toString());
             // 报送海关

+ 2 - 1
kmall-admin/src/main/java/com/kmall/admin/service/impl/OrderServiceImpl.java

@@ -3300,7 +3300,8 @@ public class OrderServiceImpl implements OrderService {
         orderSendCusParams.put("transactionId", payTransactionId);
         orderSendCusParams.put("subOrderId", "");   // ccnet原逻辑没有对该字段赋值
         orderSendCusParams.put("subOrderNo", order.getOrder_sn());
-        orderSendCusParams.put("feeType", order.getFeeType());
+        orderSendCusParams.put("feeType", "CNY");
+        orderSendCusParams.put("duty", 0);
         int orderFee = order.getActual_price().multiply(new BigDecimal(100)).intValue();
         orderSendCusParams.put("orderFee", orderFee);
         orderSendCusParams.put("productFee", orderFee);