Commit 632c3c8a4f8114709c02cbbe10c07fdf5452a00b

Authored by 王言钊
1 parent b30d9123

调试bug5

src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
... ... @@ -247,7 +247,7 @@ public class ContentServiceImpl {
247 247 public boolean callback(String contentId, String msg, Integer state, String userId, String updater) {
248 248 boolean success = true;
249 249 ShyContent content = shyContentMapper.selectByPrimaryKey(Integer.parseInt(contentId));
250   - logger.info("contentId:{},content:{}",contentId,content);
  250 + logger.info("contentId:{},content:{}", contentId, content);
251 251 JSONObject result = new JSONObject();
252 252 try {
253 253 if (CommonUtils.isNotEmpty(content.getContent_tag()) && "content".equals(content.getContent_tag())) {
... ... @@ -439,6 +439,7 @@ public class ContentServiceImpl {
439 439 * @return
440 440 */
441 441 public void contentFilter(ShyContent shyContent) {
  442 + logger.info("contentFilter接收的ShyContent对象:{}", shyContent.toString());
442 443 try {
443 444 String contentUrl = shyContent.getContent_url();
444 445 logger.info("审核云向易盾网站检测接口提交的url:{}", contentUrl);
... ... @@ -450,7 +451,7 @@ public class ContentServiceImpl {
450 451 String msg = jsonObject.getString("msg");
451 452 if (code == 200) {
452 453 // |0待发布 |1已发布 |2已下线
453   - boolean b = callback(shyContent.getContent_id(), msg, CommonConst.AUDIT_SUCCESS, "", "机审通过");
  454 + boolean b = callback(String.valueOf(shyContent.getId()), msg, CommonConst.AUDIT_SUCCESS, "", "机审通过");
454 455 }
455 456 JSONObject result = jsonObject.getJSONObject("result");
456 457 String dataId = result.getString("dataId");
... ...