Skip to content

Commit a15f444

Browse files
committed
请求工具,网络参数配置为空判断
1 parent 6be9422 commit a15f444

2 files changed

Lines changed: 61 additions & 99 deletions

File tree

pay-java-common/src/main/java/com/egzosn/pay/common/http/HttpRequestTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public <T>T doExecute(URI uri, Object request, Class<T> responseType, MethodType
330330
if (LOG.isDebugEnabled()) {
331331
LOG.debug(String.format("uri:%s, httpMethod:%s ", uri, method.name()));
332332
}
333-
ClientHttpRequest<T> httpRequest = new ClientHttpRequest(uri ,method, request, configStorage.getCharset());
333+
ClientHttpRequest<T> httpRequest = new ClientHttpRequest(uri ,method, request, null == configStorage ? null : configStorage.getCharset());
334334
//判断是否有代理设置
335335
if (null == httpProxy){
336336
httpRequest.setProxy(httpProxy);

0 commit comments

Comments
 (0)