Authored by chaogeng

no message

... ... @@ -85,15 +85,14 @@ public class ArticlePushConsumer implements CommonMessageConsumer {
//(4) 组装推送参数
Map<String, Object> pushParam = getArticlePushParam(article, content);
//(5) 推送文章到百度TP
logger.info("push article to baidu: url is {}, param is {}", baiduTPPushUrl, pushParam);
/*String response = HttpUtils.httpPost(baiduTPPushUrl, pushParam).getRight();
String response = HttpUtils.httpPost(baiduTPPushUrl, pushParam).getRight();
JSONObject rspMessage = JSONObject.parseObject(response);
if(0 == rspMessage.getInteger("errno")){
JSONObject data = rspMessage.getJSONObject("data");
logger.info("push article to baidu success, articleId is {}, feed_id is {}", articleId, data.getString("id"));
}else{
logger.warn("push article to baidu failed, articleId is {}, return message is {}", articleId, rspMessage.toJSONString());
}*/
}
} catch (Exception e) {
logger.warn("ArticlePushConsumer.handleMessage fail: message is {}, error is {}", message, e);
}
... ...