Skip to content

Commit 0bfc935

Browse files
authored
🎨 #3102 【微信支付】修复申请资金账单接口请求里的参数名称
1 parent 0a1411a commit 0bfc935

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,17 @@ public String getType() {
175175
*/
176176
public static class AccountType {
177177
/**
178-
* 基本账户
178+
* BASIC:基本账户
179179
*/
180-
public static final String BASIC = "Basic";
180+
public static final String BASIC = "BASIC";
181181
/**
182-
* 运营账户
182+
* OPERATION:运营账户
183183
*/
184-
public static final String OPERATION = "Operation";
184+
public static final String OPERATION = "OPERATION";
185185
/**
186-
* Fees
186+
* FEES:手续费账户
187187
*/
188-
public static final String FEES = "Fees";
188+
public static final String FEES = "FEES";
189189
}
190190

191191
/**

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,9 @@ public WxPayApplyBillV3Result applyTradeBill(WxPayApplyTradeBillV3Request reques
11021102
public WxPayApplyBillV3Result applyFundFlowBill(WxPayApplyFundFlowBillV3Request request) throws WxPayException {
11031103
String url;
11041104
if (StringUtils.isBlank(request.getTarType())) {
1105-
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&bill_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType());
1105+
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&account_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType());
11061106
} else {
1107-
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&bill_type=%s&tar_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType(), request.getTarType());
1107+
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&account_type=%s&tar_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType(), request.getTarType());
11081108
}
11091109
String response = this.getV3(url);
11101110
return GSON.fromJson(response, WxPayApplyBillV3Result.class);

0 commit comments

Comments
 (0)