wangming 3 napja
szülő
commit
783694cbff

+ 2 - 2
yami-shop-wx/src/main/java/com/yami/shop/wx/service/impl/WxProviderServiceImpl.java

@@ -135,7 +135,7 @@ public class WxProviderServiceImpl implements WxProviderService {
         log.info("根据订单号查询订单,订单号: {}", orderNo);
         String url = wechatPayServiceConfig.getBaseUrl().concat("/pay/partner/transactions/out-trade-no/".concat(orderNo))
                 .concat("?sp_mchid=").concat(wechatPayServiceConfig.getSpMchId())
-                .concat("&sub_mchid=").concat(wechatPayServiceConfig.getSubAppId());
+                .concat("&sub_mchid=").concat(wechatPayServiceConfig.getSubMchId());
         String res = wechatHttpGet(url);
         log.info("查询订单结果:{}", res);
         Map<String, Object> resMap = JSONObject.parseObject(res, new TypeReference<Map<String, Object>>() {
@@ -216,7 +216,7 @@ public class WxProviderServiceImpl implements WxProviderService {
         log.info("根据订单号查询退款订单,订单号: {}", refundNo);
         String url = wechatPayServiceConfig.getBaseUrl()
                 .concat(CombinePayUrlEnum.DOMESTIC_REFUNDS_QUERY.getType().concat(refundNo))
-                .concat("?sub_mchid=").concat(wechatPayServiceConfig.getSubAppId());
+                .concat("?sub_mchid=").concat(wechatPayServiceConfig.getSubMchId());
         String res = wechatHttpGet(url);
         log.info("查询退款订单结果:{}", res);
         Map<String, Object> resMap = JSONObject.parseObject(res, new TypeReference<Map<String, Object>>() {