From cee52521bbdb998745ca9a0dc6866667e606b79c Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期五, 20 十月 2023 10:26:09 +0800 Subject: [PATCH] 10.20 --- cloud-server-other/src/main/java/com/dsh/other/util/PayMoneyUtil.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/util/PayMoneyUtil.java b/cloud-server-other/src/main/java/com/dsh/other/util/PayMoneyUtil.java index b0aef0f..5a5e6ad 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/util/PayMoneyUtil.java +++ b/cloud-server-other/src/main/java/com/dsh/other/util/PayMoneyUtil.java @@ -12,6 +12,7 @@ import com.alipay.api.domain.RoyaltyInfo; import com.alipay.api.request.*; import com.alipay.api.response.*; +import lombok.Synchronized; import org.apache.commons.collections.map.HashedMap; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.dom4j.Document; @@ -76,6 +77,7 @@ /** * 支付宝支付 */ + public ResultUtil alipay(String body, String subject, String passbackParams, String outTradeNo, String amount, String notifyUrl){ // //构造client // CertAlipayRequest certAlipayRequest = new CertAlipayRequest (); @@ -147,6 +149,7 @@ + //分账 // Integer coursePackagePayments = coursePackageClient.queryByCode(outTradeNo); // Integer paymentCompetitions = competitionsClient.queryByCode(outTradeNo); @@ -161,10 +164,9 @@ // String alipayProportion = operatorUser.getAlipayProportion(); // String alipayNum = operatorUser.getAlipayNum(); - ExtendParams extendParams = new ExtendParams(); // extendParams.setSysServiceProviderId("YOUR_SERVICE_PROVIDER_ID"); + ExtendParams extendParams = new ExtendParams(); model.setExtendParams(extendParams); - RoyaltyInfo royaltyInfo = new RoyaltyInfo(); // royaltyInfo.setRoyaltyType("transfer"); -- Gitblit v1.7.1