mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-05 05:07:46 +08:00
#936 修复微信支付沙箱环境退款接口的请求地址
This commit is contained in:
parent
5d7f69a984
commit
2887c1e47e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user