Procházet zdrojové kódy

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

master
Binary Wang před 6 roky
rodič
revize
2887c1e47e
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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 Zobrazit soubor

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


Načítá se…
Zrušit
Uložit