We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d42404 commit 333a840Copy full SHA for 333a840
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
@@ -326,11 +326,9 @@ public <T> T createOrder(WxPayUnifiedOrderRequest request) throws WxPayException
326
327
Map<String, String> configMap = new HashMap<>(8);
328
// 此map用于参与调起sdk支付的二次签名,格式全小写,timestamp只能是10位,格式固定,切勿修改
329
- String partnerId;
330
- if (StringUtils.isEmpty(request.getMchId())) {
331
- partnerId = this.getConfig().getMchId();
332
- } else {
333
- partnerId = request.getMchId();
+ String partnerId = unifiedOrderResult.getMchId();
+ if (StringUtils.isNotEmpty(unifiedOrderResult.getSubMchId())) {
+ partnerId = unifiedOrderResult.getSubMchId();
334
}
335
336
configMap.put("prepayid", prepayId);
0 commit comments