This commit is contained in:
dzc committed 2026-06-01 15:49:05 +08:00
1 parent 0f25f7abf4
commit 8519fed2de
1 file changed
+6 -1
@@ -99,7 +99,12 @@ public class ThirdAppPlusWechatServiceImpl implements ThirdAppPlusWechatService
amount.setCurrency("CNY");
// 分账
SettleInfo settleInfo = new SettleInfo();
settleInfo.setProfitSharing(true);
settleInfo.setProfitSharing(false);
// 是否需要分账
if (ObjectUtil.isNotEmpty(setting) && ObjectUtil.isNotEmpty(setting.getFzRatio()) && setting.getFzRatio() > 0) {
settleInfo.setProfitSharing(true);
}
PrepayRequest request = new PrepayRequest();
request.setAmount(amount);
request.setSpAppid(wechatConfig.getAppPlatformAppId());