|
|
|
@ -130,6 +130,7 @@ public class OrderController { |
|
|
|
|
WeChatPayReqInfo weChatPayReqInfo = new WeChatPayReqInfo(); |
|
|
|
|
weChatPayReqInfo.setAppid(SysConst.getSysConfig().getWxMchAppId()); //公众号id
|
|
|
|
|
weChatPayReqInfo.setMch_id(SysConst.getSysConfig().getWxMchId()); //商户号
|
|
|
|
|
weChatPayReqInfo.setSub_appid(SysConst.getSysConfig().getWxSubAppId()); //商户号
|
|
|
|
|
weChatPayReqInfo.setSub_mch_id(SysConst.getSysConfig().getWxSubMchId()); //子商户号
|
|
|
|
|
|
|
|
|
|
weChatPayReqInfo.setOpenid(openId); |
|
|
|
@ -143,7 +144,7 @@ public class OrderController { |
|
|
|
|
// weChatPayReqInfo.setAttach(map.get("orderScene").toString()); //附加数据,区分订单类型
|
|
|
|
|
Map<String,String> payMap = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
payMap.put("app_id",SysConst.getSysConfig().getWxAppId()); |
|
|
|
|
payMap.put("app_id",SysConst.getSysConfig().getWxSubAppId()); |
|
|
|
|
payMap.put("api_key",SysConst.getSysConfig().getWxApiKey()); |
|
|
|
|
payMap.put("unified_order_url",SysConst.getSysConfig().getWxUnifiedOrderUrl()); |
|
|
|
|
SortedMap<Object, Object> sortedMap = wechatPayUtil.goWechatPay(weChatPayReqInfo,payMap); |
|
|
|
|