Explorar o código

fix(wechat):修正微信分账服务中子商户ID设置错误

- 将分账请求中的子商户ID从partyFunding更正为receiverRecords
- 确保使用正确的接收方记录来设置子商户ID- 修复因错误的子商户ID导致的分账失败问题
wzq hai 3 días
pai
achega
26309818bd

+ 1 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/pay/config/WeChatProfitSharingService.java

@@ -146,7 +146,7 @@ public class WeChatProfitSharingService {
         ProfitSharingRequest profitSharingRequest = new ProfitSharingRequest();
         profitSharingRequest
                 .setAppid(WechatConstants.WECHAT_SP_APPID)
-                .setSub_mchid(partyFunding.get(0).getMchId())
+                .setSub_mchid(receiverRecords.get(0).getMchId())
                 .setTransaction_id(appOrder.getTransactionId())
                 .setOut_order_no(appProfitSharingRecords.getProfitSharingNo())
                 .setReceivers(receivers)