diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/enumeration/WechatPayV3Type.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/enumeration/WechatPayV3Type.java index 3bcbca3..a112747 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/enumeration/WechatPayV3Type.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/enumeration/WechatPayV3Type.java @@ -47,13 +47,13 @@ public enum WechatPayV3Type { * * @since 1.0.3.RELEASE */ - TRADEBILL(HttpMethod.GET, "%s/v3/bill/tradebill"), + TRADE_BILL(HttpMethod.GET, "%s/v3/bill/tradebill"), /** * 申请资金账单API. * * @since 1.0.3.RELEASE */ - FUNDFLOWBILL(HttpMethod.GET, "%s/v3/bill/fundflowbill"), + FUND_FLOW_BILL(HttpMethod.GET, "%s/v3/bill/fundflowbill"), //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/AbstractApi.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/AbstractApi.java index 64c34c8..56c15ac 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/AbstractApi.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/AbstractApi.java @@ -257,7 +257,7 @@ public abstract class AbstractApi { public ResponseEntity downloadTradeBill(TradeBillParams tradeBillParams) { WechatResponseEntity wechatResponseEntity = new WechatResponseEntity<>(); - this.client().withType(WechatPayV3Type.TRADEBILL, tradeBillParams) + this.client().withType(WechatPayV3Type.TRADE_BILL, tradeBillParams) .function((wechatPayV3Type, params) -> { MultiValueMap queryParams = new LinkedMultiValueMap<>(); LocalDate billDate = params.getBillDate(); @@ -304,7 +304,7 @@ public abstract class AbstractApi { */ public ResponseEntity downloadFundFlowBill(FundFlowBillParams fundFlowBillParams) { WechatResponseEntity wechatResponseEntity = new WechatResponseEntity<>(); - this.client().withType(WechatPayV3Type.FUNDFLOWBILL, fundFlowBillParams) + this.client().withType(WechatPayV3Type.FUND_FLOW_BILL, fundFlowBillParams) .function((wechatPayV3Type, params) -> { MultiValueMap queryParams = new LinkedMultiValueMap<>(); LocalDate billDate = params.getBillDate(); diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/SignatureProvider.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/SignatureProvider.java index 87b011c..60e24c0 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/SignatureProvider.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/SignatureProvider.java @@ -118,7 +118,7 @@ public class SignatureProvider { /** * 我方请求前用 SHA256withRSA 加签,使用API证书. * - * @param newLine the new line + * @param newLine 签名协议不兼容而增加的开关 github issues#18 * @param tenantId the properties key * @param method the method * @param canonicalUrl the canonical url