Commit c25ccc5443e0c849e73d67f335e56982d1f203c6
Merge branch 'dev'
# Conflicts: # src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
Showing
3 changed files
with
5 additions
and
4 deletions
src/main/java/com/cnlive/shenhe/job/ContentJob.java
| @@ -48,7 +48,7 @@ public class ContentJob { | @@ -48,7 +48,7 @@ public class ContentJob { | ||
| 48 | * 定时向易盾提交网站地址 | 48 | * 定时向易盾提交网站地址 |
| 49 | * //每分钟一次 | 49 | * //每分钟一次 |
| 50 | */ | 50 | */ |
| 51 | - @Scheduled(cron = "0 0/1 * * * ? ") | 51 | + @Scheduled(cron = "0 0/5 * * * ? ") |
| 52 | public void videofilter() { | 52 | public void videofilter() { |
| 53 | logger.info("审核云提交网页审核到易盾..........."); | 53 | logger.info("审核云提交网页审核到易盾..........."); |
| 54 | List<ShyContent> shyContentList = contentService.findShyContentWithWebPage(); | 54 | List<ShyContent> shyContentList = contentService.findShyContentWithWebPage(); |
src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
| @@ -78,7 +78,7 @@ public class CommentsServiceImpl { | @@ -78,7 +78,7 @@ public class CommentsServiceImpl { | ||
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | public PageInfo<ShyComments> getPage(CommentsDTO commentsDTO) { | 80 | public PageInfo<ShyComments> getPage(CommentsDTO commentsDTO) { |
| 81 | - logger.info("接受参数对象为,CommentsDTO:{}",JSONObject.toJSON(commentsDTO)); | 81 | + logger.info("接受参数对象为,CommentsDTO:{}", JSONObject.toJSON(commentsDTO)); |
| 82 | Example example = new Example(ShyComments.class); | 82 | Example example = new Example(ShyComments.class); |
| 83 | Example.Criteria criteria = example.createCriteria(); | 83 | Example.Criteria criteria = example.createCriteria(); |
| 84 | if (CommonUtils.isNotEmpty(commentsDTO.getOrderByClause())) { | 84 | if (CommonUtils.isNotEmpty(commentsDTO.getOrderByClause())) { |
| @@ -120,7 +120,6 @@ public class CommentsServiceImpl { | @@ -120,7 +120,6 @@ public class CommentsServiceImpl { | ||
| 120 | } | 120 | } |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | - | ||
| 124 | if (CommonUtils.isNotNull(commentsDTO.getState()) && commentsDTO.getState() != 3) { | 123 | if (CommonUtils.isNotNull(commentsDTO.getState()) && commentsDTO.getState() != 3) { |
| 125 | criteria.andEqualTo("state", commentsDTO.getState()); | 124 | criteria.andEqualTo("state", commentsDTO.getState()); |
| 126 | } else if (CommonUtils.isNotNull(commentsDTO.getState()) && commentsDTO.getState() == 3) { | 125 | } else if (CommonUtils.isNotNull(commentsDTO.getState()) && commentsDTO.getState() == 3) { |
src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
| @@ -364,8 +364,10 @@ public class ContentServiceImpl { | @@ -364,8 +364,10 @@ public class ContentServiceImpl { | ||
| 364 | //免审 | 364 | //免审 |
| 365 | shenheType = 1; | 365 | shenheType = 1; |
| 366 | } else { | 366 | } else { |
| 367 | - if ("content".equals(ContentTag) || ContentTag.startsWith("cms_") || ContentTag.startsWith("edu_")) { | 367 | + if ("content".equals(ContentTag)) { |
| 368 | //机审 | 368 | //机审 |
| 369 | + shenheType = 1; | ||
| 370 | + } else if (ContentTag.startsWith("cms_") || ContentTag.startsWith("edu_")) { | ||
| 369 | shenheType = 2; | 371 | shenheType = 2; |
| 370 | } else { | 372 | } else { |
| 371 | //人工审 | 373 | //人工审 |