🎨 优化代码

This commit is contained in:
Binary Wang
2020-05-19 22:01:12 +08:00
parent 40ab5dd402
commit 4929e4e03e
4 changed files with 50 additions and 42 deletions

View File

@@ -144,11 +144,11 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl {
}
private CloseableHttpClient createApiV3HttpClient() throws WxPayException {
CloseableHttpClient apiv3HttpClient = this.getConfig().getApiV3HttpClient();
if (null == apiv3HttpClient) {
CloseableHttpClient apiV3HttpClient = this.getConfig().getApiV3HttpClient();
if (null == apiV3HttpClient) {
return this.getConfig().initApiV3HttpClient();
}
return apiv3HttpClient;
return apiV3HttpClient;
}
private StringEntity createEntry(String requestStr) {