瀏覽代碼

wxbusiness

formao-live
xhxu 4 年之前
父節點
當前提交
11b43728cc
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BusinessCircleService.java
  2. +2
    -2
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BusinessCircleServiceImpl.java

+ 1
- 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BusinessCircleService.java 查看文件

@@ -25,7 +25,7 @@ public interface BusinessCircleService {
* @param request 请求对象
* @throws WxPayException the wx pay exception
*/
void notifyPoints(PointsNotifyRequest request) throws WxPayException;
String notifyPoints(PointsNotifyRequest request) throws WxPayException;

BusinessCircleNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException;



+ 2
- 2
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BusinessCircleServiceImpl.java 查看文件

@@ -32,10 +32,10 @@ public class BusinessCircleServiceImpl implements BusinessCircleService {
private final WxPayService payService;

@Override
public void notifyPoints(PointsNotifyRequest request) throws WxPayException {
public String notifyPoints(PointsNotifyRequest request) throws WxPayException {
String url = String.format("%s/v3/businesscircle/points/notify", this.payService.getPayBaseUrl());
RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate());
this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
return this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
}

/**


Loading…
取消
儲存