mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-21 19:17:39 +08:00
#936 修复微信支付沙箱环境退款接口的请求地址
This commit is contained in:
@@ -141,6 +141,10 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
|
|||||||
request.checkAndSign(this.getConfig());
|
request.checkAndSign(this.getConfig());
|
||||||
|
|
||||||
String url = this.getPayBaseUrl() + "/secapi/pay/refund";
|
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);
|
String responseContent = this.post(url, request.toXML(), true);
|
||||||
WxPayRefundResult result = WxPayRefundResult.fromXML(responseContent);
|
WxPayRefundResult result = WxPayRefundResult.fromXML(responseContent);
|
||||||
result.checkResult(this, request.getSignType(), true);
|
result.checkResult(this, request.getSignType(), true);
|
||||||
|
Reference in New Issue
Block a user