Jelajahi Sumber

:bug: #3369【微信支付】修复查询分账结果transaction_id取值问题

答复哈 8 bulan lalu
induk
melakukan
b0b487fee1

+ 1 - 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingServiceImpl.java

@@ -146,7 +146,7 @@ public class ProfitSharingServiceImpl implements ProfitSharingService {
   @Override
   public ProfitSharingV3Result profitSharingQueryV3(ProfitSharingQueryV3Request request) throws WxPayException {
     String url = String.format("%s/v3/profitsharing/orders/%s?transaction_id=%s", this.payService.getPayBaseUrl(),
-      request.getOutOrderNo(), request.getOutOrderNo());
+      request.getOutOrderNo(), request.getTransactionId());
     if(StringUtils.isNotEmpty(request.getSubMchId())){
       url += "&sub_mchid=" + request.getSubMchId();
     }