'提交代码'

dev-discount
胡锐 3 years ago
parent 65d17e5c96
commit b33c7ee27f
  1. 4
      hai-cweb/src/main/java/com/cweb/controller/pay/OrderController.java

@ -262,8 +262,8 @@ public class OrderController {
//微信支付
String nonce_str = MD5Util.MD5Encode(String.valueOf(ThreadLocalRandom.current().nextInt(10000)), "UTF-8");
// int total_fee = MathUtils.objectConvertBigDecimal(map.get("payPrice")).multiply(new BigDecimal("100")).intValue();
int total_fee = 1;
int total_fee = MathUtils.objectConvertBigDecimal(map.get("payPrice")).multiply(new BigDecimal("100")).intValue();
// int total_fee = 1;
WeChatPayReqInfo weChatPayReqInfo = new WeChatPayReqInfo();
weChatPayReqInfo.setAppid(SysConst.getSysConfig().getWxMchAppId()); //公众号id
weChatPayReqInfo.setMch_id(SysConst.getSysConfig().getWxMchId()); //商户号

Loading…
Cancel
Save