Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YOHOBUY
/
yohobuy-union
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chaogeng
8 years ago
Commit
b9fb0034de79acbb4a106940cd4a372044b37aa7
1 parent
472015c2
no message
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
server/src/main/java/com/yoho/unions/server/mqconsumer/ArticlePushConsumer.java
server/src/main/java/com/yoho/unions/server/mqconsumer/ArticlePushConsumer.java
View file @
b9fb003
...
...
@@ -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
);
}
...
...
Please
register
or
login
to post a comment