v1.4
xueli.xue 8 years ago
parent 0964a7c2f8
commit 5e20e01acd

@ -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