Commit 632c3c8a4f8114709c02cbbe10c07fdf5452a00b
1 parent
b30d9123
调试bug5
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
| @@ -247,7 +247,7 @@ public class ContentServiceImpl { | @@ -247,7 +247,7 @@ public class ContentServiceImpl { | ||
| 247 | public boolean callback(String contentId, String msg, Integer state, String userId, String updater) { | 247 | public boolean callback(String contentId, String msg, Integer state, String userId, String updater) { |
| 248 | boolean success = true; | 248 | boolean success = true; |
| 249 | ShyContent content = shyContentMapper.selectByPrimaryKey(Integer.parseInt(contentId)); | 249 | ShyContent content = shyContentMapper.selectByPrimaryKey(Integer.parseInt(contentId)); |
| 250 | - logger.info("contentId:{},content:{}",contentId,content); | 250 | + logger.info("contentId:{},content:{}", contentId, content); |
| 251 | JSONObject result = new JSONObject(); | 251 | JSONObject result = new JSONObject(); |
| 252 | try { | 252 | try { |
| 253 | if (CommonUtils.isNotEmpty(content.getContent_tag()) && "content".equals(content.getContent_tag())) { | 253 | if (CommonUtils.isNotEmpty(content.getContent_tag()) && "content".equals(content.getContent_tag())) { |
| @@ -439,6 +439,7 @@ public class ContentServiceImpl { | @@ -439,6 +439,7 @@ public class ContentServiceImpl { | ||
| 439 | * @return | 439 | * @return |
| 440 | */ | 440 | */ |
| 441 | public void contentFilter(ShyContent shyContent) { | 441 | public void contentFilter(ShyContent shyContent) { |
| 442 | + logger.info("contentFilter接收的ShyContent对象:{}", shyContent.toString()); | ||
| 442 | try { | 443 | try { |
| 443 | String contentUrl = shyContent.getContent_url(); | 444 | String contentUrl = shyContent.getContent_url(); |
| 444 | logger.info("审核云向易盾网站检测接口提交的url:{}", contentUrl); | 445 | logger.info("审核云向易盾网站检测接口提交的url:{}", contentUrl); |
| @@ -450,7 +451,7 @@ public class ContentServiceImpl { | @@ -450,7 +451,7 @@ public class ContentServiceImpl { | ||
| 450 | String msg = jsonObject.getString("msg"); | 451 | String msg = jsonObject.getString("msg"); |
| 451 | if (code == 200) { | 452 | if (code == 200) { |
| 452 | // |0待发布 |1已发布 |2已下线 | 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 | JSONObject result = jsonObject.getJSONObject("result"); | 456 | JSONObject result = jsonObject.getJSONObject("result"); |
| 456 | String dataId = result.getString("dataId"); | 457 | String dataId = result.getString("dataId"); |