Skip to content

Commit

Permalink
🎨 #3102 【微信支付】修复申请资金账单接口请求里的参数名称
Browse files Browse the repository at this point in the history
  • Loading branch information
rrym authored Aug 4, 2023
1 parent 0a1411a commit 0bfc935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ public String getType() {
*/
public static class AccountType {
/**
* 基本账户
* BASIC:基本账户
*/
public static final String BASIC = "Basic";
public static final String BASIC = "BASIC";
/**
* 运营账户
* OPERATION:运营账户
*/
public static final String OPERATION = "Operation";
public static final String OPERATION = "OPERATION";
/**
* Fees
* FEES:手续费账户
*/
public static final String FEES = "Fees";
public static final String FEES = "FEES";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1102,9 +1102,9 @@ public WxPayApplyBillV3Result applyTradeBill(WxPayApplyTradeBillV3Request reques
public WxPayApplyBillV3Result applyFundFlowBill(WxPayApplyFundFlowBillV3Request request) throws WxPayException {
String url;
if (StringUtils.isBlank(request.getTarType())) {
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&bill_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType());
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&account_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType());
} else {
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&bill_type=%s&tar_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType(), request.getTarType());
url = String.format("%s/v3/bill/fundflowbill?bill_date=%s&account_type=%s&tar_type=%s", this.getPayBaseUrl(), request.getBillDate(), request.getAccountType(), request.getTarType());
}
String response = this.getV3(url);
return GSON.fromJson(response, WxPayApplyBillV3Result.class);
Expand Down

0 comments on commit 0bfc935

Please sign in to comment.