master
xueli.xue 8 years ago
parent 0964a7c2f8
commit 5e20e01acd
  1. 3
      xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java

@ -90,11 +90,12 @@ public class XxlJobNetCommUtil {
HttpEntity entity = response.getEntity();
if (response.getStatusLine().getStatusCode() == 200 && null != entity) {
String responseHex = EntityUtils.toString(entity, "UTF-8");
logger.debug("xxl-job, net comm success, requestHex:{}, responseHex:{}", requestHex, responseHex);
logger.info("xxl-job, net comm success, requestHex:{}, responseHex:{}", requestHex, responseHex);
EntityUtils.consume(entity);
// i do not know why
responseHex = responseHex.replace("\n", "");
responseHex = responseHex.replace("\r", "");
// parse hex-json to ResponseModel
ResponseModel responseModel = XxlJobNetCommUtil.parseHexJson2Obj(responseHex, ResponseModel.class);

Loading…
Cancel
Save