🐛 #1959 【微信支付】电商收付通修复请求分账接口异常问题

Co-authored-by: aha <aha>
This commit is contained in:
guicw
2021-01-10 23:21:19 +08:00
committed by GitHub
parent fd58b3f212
commit 04fadf6f71
3 changed files with 20 additions and 4 deletions

View File

@@ -190,7 +190,8 @@ public class EcommerceServiceImpl implements EcommerceService {
@Override
public ProfitSharingResult profitSharing(ProfitSharingRequest request) throws WxPayException {
String url = String.format("%s/v3/ecommerce/profitsharing/orders", this.payService.getPayBaseUrl());
String response = this.payService.postV3(url, GSON.toJson(request));
RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate());
String response = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
return GSON.fromJson(response, ProfitSharingResult.class);
}