|
|
@@ -141,6 +141,7 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl { |
|
|
|
String responseString = "{}"; |
|
|
|
HttpEntity entity = response.getEntity(); |
|
|
|
if (entity != null) { |
|
|
|
this.log.error("====="+entity.toString()); |
|
|
|
responseString = EntityUtils.toString(entity, StandardCharsets.UTF_8); |
|
|
|
} |
|
|
|
|
|
|
@@ -148,7 +149,6 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl { |
|
|
|
this.log.info("\n【请求地址】:{}\n【请求数据】:{}\n【响应数据】:{}", url, requestStr, responseString); |
|
|
|
return responseString; |
|
|
|
} else { |
|
|
|
this.log.error(responseString); |
|
|
|
//有错误提示信息返回 |
|
|
|
JsonObject jsonObject = GsonParser.parse(responseString); |
|
|
|
throw convertException(jsonObject); |
|
|
|