Bläddra i källkod

wxbusiness

formao-live
xhxu 4 år sedan
förälder
incheckning
11b43728cc
2 ändrade filer med 3 tillägg och 3 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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));
}

/**


Laddar…
Avbryt
Spara