🎨 #3102 【微信支付】修复申请资金账单接口请求里的参数名称

This commit is contained in:
吴小林 2023-08-04 10:57:25 +08:00 committed by GitHub
parent 0a1411a8fe
commit 0bfc9353d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -175,17 +175,17 @@ public class WxPayConstants {
*/
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";
}
/**

View File

@ -1102,9 +1102,9 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
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);