8
8
9
9
## 项目状态
10
10
11
- 当前版本` 0.1.4-SNAPSHOT ` 为预览版,尚没经过严格的功能和兼容性测试 。请商户的专业技术人员在使用时注意系统和软件的正确性和兼容性。由此带来的风险,由商户自行承担 。
11
+ 当前版本` 0.1.5 ` 为测试版本 。请商户的专业技术人员在使用时注意系统和软件的正确性和兼容性,以及带来的风险 。
12
12
13
13
## 环境要求
14
14
@@ -27,7 +27,7 @@ repositories {
27
27
}
28
28
...
29
29
dependencies {
30
- implementation 'com.github.wechatpay-apiv3:wechatpay-apache-httpclient:0.1.4-SNAPSHOT '
30
+ implementation 'com.github.wechatpay-apiv3:wechatpay-apache-httpclient:0.1.5 '
31
31
...
32
32
}
33
33
```
@@ -51,7 +51,7 @@ dependencies {
51
51
<dependency >
52
52
<groupId >com.github.wechatpay-apiv3</groupId >
53
53
<artifactId >wechatpay-apache-httpclient</artifactId >
54
- <version >0.1.4-SNAPSHOT </version >
54
+ <version >0.1.5 </version >
55
55
</dependency >
56
56
```
57
57
@@ -95,9 +95,9 @@ WechatPayHttpClientBuilder builder = WechatPayHttpClientBuilder.create()
95
95
.withWechatpay(wechatpayCertificates);
96
96
```
97
97
98
- ### 自动更新证书功能(可选)
98
+ ## 自动更新证书功能(可选)
99
99
100
- 可使用 AutoUpdateCertificatesVerifier 类,该类于原 CertificatesVerifier 上增加证书的** 超时自动更新** (默认与上次更新时间超过一小时后自动更新),并会在首次创建时,进行证书更新。
100
+ 新版本 ` >=0.1.5 ` 可使用 AutoUpdateCertificatesVerifier 类,该类于原 CertificatesVerifier 上增加证书的** 超时自动更新** (默认与上次更新时间超过一小时后自动更新),并会在首次创建时,进行证书更新。
101
101
102
102
示例代码:
103
103
@@ -120,7 +120,7 @@ HttpClient httpClient = builder.build();
120
120
HttpResponse response = httpClient. execute(... );
121
121
```
122
122
123
- #### 风险
123
+ ### 风险
124
124
125
125
因为不需要传入微信支付平台证书,AutoUpdateCertificatesVerifier 在首次更新证书时** 不会验签** ,也就无法确认应答身份,可能导致下载错误的证书。
126
126
@@ -147,7 +147,7 @@ CloseableHttpClient httpClient = WechatPayHttpClientBuilder.create()
147
147
148
148
## 联系我们
149
149
150
- 如果你发现了** BUG** 或者有任何疑问,请通过issue进行反馈。
150
+ 如果你发现了** BUG** 或者有任何疑问、建议 ,请通过issue进行反馈。
151
151
152
152
也欢迎访问我们的[ 开发者社区] ( https://developers.weixin.qq.com/community/pay ) 。
153
153
0 commit comments