| @@ -99,7 +99,7 @@ public class WxMiniAppPayV3AdapterService extends BaseWxPayV3AdapterService impl | |||||
| private V3CreatePayReq generateCreatePayRequest(ProductOrder productOrder,WxAppinfo appInfo,WxPayAccount payAccount) throws Exception { | private V3CreatePayReq generateCreatePayRequest(ProductOrder productOrder,WxAppinfo appInfo,WxPayAccount payAccount) throws Exception { | ||||
| V3CreatePayReq req = new V3CreatePayReq(); | V3CreatePayReq req = new V3CreatePayReq(); | ||||
| req.setAppid(appInfo.getAppId()); | req.setAppid(appInfo.getAppId()); | ||||
| req.setMchid(payAccount.getMchId()); | |||||
| req.setMchid(payAccount.getSubMchId()); | |||||
| try { | try { | ||||
| //中文必须要这样,否则会双方签名失败 | //中文必须要这样,否则会双方签名失败 | ||||
| req.setDescription(WxPayV3.handleChinese(appInfo.getName()+"-"+productOrder.getProductTitle())); | req.setDescription(WxPayV3.handleChinese(appInfo.getName()+"-"+productOrder.getProductTitle())); | ||||
| @@ -360,7 +360,7 @@ public class WxMiniAppPayV3AdapterService extends BaseWxPayV3AdapterService impl | |||||
| public PayQueryAdapterResult queryPayStatus(ProductOrder order, WxAppinfo appInfo, WxPayAccount payAccount) throws Exception { | public PayQueryAdapterResult queryPayStatus(ProductOrder order, WxAppinfo appInfo, WxPayAccount payAccount) throws Exception { | ||||
| WxPayService payService = maUtil.getWxPayServiceBySelfModel(appInfo, payAccount); | WxPayService payService = maUtil.getWxPayServiceBySelfModel(appInfo, payAccount); | ||||
| V3PayQuery req = new V3PayQuery(); | V3PayQuery req = new V3PayQuery(); | ||||
| req.setMchid(payAccount.getMchId()); | |||||
| req.setMchid(payAccount.getSubMchId()); | |||||
| req.setOut_trade_no(order.getOrderNumber()); | req.setOut_trade_no(order.getOrderNumber()); | ||||
| try { | try { | ||||
| String response = WxPayV3.payQuery(payService, req); | String response = WxPayV3.payQuery(payService, req); | ||||