Selaa lähdekoodia

#936 修复微信支付沙箱环境退款接口的请求地址

master
Binary Wang 6 vuotta sitten
vanhempi
commit
2887c1e47e
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. +4
    -0
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

+ 4
- 0
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java Näytä tiedosto

@@ -141,6 +141,10 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
request.checkAndSign(this.getConfig());

String url = this.getPayBaseUrl() + "/secapi/pay/refund";
if (this.getConfig().isUseSandboxEnv()) {
url = PAY_BASE_URL + "/sandboxnew/pay/refund";
}

String responseContent = this.post(url, request.toXML(), true);
WxPayRefundResult result = WxPayRefundResult.fromXML(responseContent);
result.checkResult(this, request.getSignType(), true);


Ladataan…
Peruuta
Tallenna