Commit 246d502e7332403fc2b2dc4d2d523c1be3952af0

Authored by 宋亚南
1 parent e985d343

clean

src/main/java/com/cnlive/shenhe/job/YiDunUrlResultJob.java
@@ -75,7 +75,9 @@ public class YiDunUrlResultJob { @@ -75,7 +75,9 @@ public class YiDunUrlResultJob {
75 logger.info("审核云查询易盾网站检测结果:{}", s1); 75 logger.info("审核云查询易盾网站检测结果:{}", s1);
76 76
77 // 4.解析接口返回值 77 // 4.解析接口返回值
  78 + logger.info("内容易盾网站检测请求:{}", params);
78 JSONObject resultObject = JSONObject.parseObject(s1); 79 JSONObject resultObject = JSONObject.parseObject(s1);
  80 + logger.info("内容易盾网站检测结果:{}", resultObject.toJSONString());
79 int code = resultObject.getIntValue("code"); 81 int code = resultObject.getIntValue("code");
80 String msg = resultObject.getString("msg"); 82 String msg = resultObject.getString("msg");
81 if (code == 200 && "ok".equals(msg)) { 83 if (code == 200 && "ok".equals(msg)) {
@@ -88,6 +90,7 @@ public class YiDunUrlResultJob { @@ -88,6 +90,7 @@ public class YiDunUrlResultJob {
88 try { 90 try {
89 JSONObject jsonObject = resultJsonArray.getJSONObject(i); 91 JSONObject jsonObject = resultJsonArray.getJSONObject(i);
90 String dataId = jsonObject.getString("dataId"); 92 String dataId = jsonObject.getString("dataId");
  93 + logger.info(dataId + "内容易盾网站检测结果:{}", jsonObject.toJSONString());
91 ShyYidun yiDunMsg = yiDunService.getYiDunMsg(dataId); 94 ShyYidun yiDunMsg = yiDunService.getYiDunMsg(dataId);
92 if (yiDunMsg == null) { 95 if (yiDunMsg == null) {
93 continue; 96 continue;
src/main/java/com/cnlive/shenhe/service/serviceImpl/ContentServiceImpl.java
@@ -464,7 +464,6 @@ public class ContentServiceImpl implements ContentService { @@ -464,7 +464,6 @@ public class ContentServiceImpl implements ContentService {
464 */ 464 */
465 @Override 465 @Override
466 public void contentFilter(ShyContent shyContent) { 466 public void contentFilter(ShyContent shyContent) {
467 - logger.info("contentFilter接收的ShyContent对象:{}", shyContent.toString());  
468 try { 467 try {
469 String contentUrl = shyContent.getContent_url(); 468 String contentUrl = shyContent.getContent_url();
470 logger.info("审核云向易盾网站检测接口提交的url:{}", contentUrl); 469 logger.info("审核云向易盾网站检测接口提交的url:{}", contentUrl);