🎨 修复接口参数命名错误问题

This commit is contained in:
Binary Wang
2021-09-19 12:59:03 +08:00
parent cabee0f70c
commit 2019efffa3
4 changed files with 14 additions and 16 deletions

View File

@@ -697,11 +697,11 @@ public interface WxPayService {
* 接口链接https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no}
* </pre>
*
* @param outTradeNo 商户单号
* @param outRefundNo 商户退款单号
* @return 退款信息 wx pay refund query result
* @throws WxPayException the wx pay exception
*/
WxPayRefundQueryV3Result refundQueryV3(String outTradeNo) throws WxPayException;
WxPayRefundQueryV3Result refundQueryV3(String outRefundNo) throws WxPayException;
/**
* <pre>

View File

@@ -305,15 +305,15 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
}
@Override
public WxPayRefundQueryV3Result refundQueryV3(String outTradeNo) throws WxPayException {
String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), outTradeNo);
public WxPayRefundQueryV3Result refundQueryV3(String outRefundNo) throws WxPayException {
String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), outRefundNo);
String response = this.getV3(url);
return GSON.fromJson(response, WxPayRefundQueryV3Result.class);
}
@Override
public WxPayRefundQueryV3Result refundQueryV3(WxPayRefundQueryV3Request request) throws WxPayException {
String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), request.getOutTradeNo());
String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), request.getOutRefundNo());
String response = this.getV3(url);
return GSON.fromJson(response, WxPayRefundQueryV3Result.class);
}