Commit 1ccf4c3d4ba64bdf71868d3dfc9c25847663252b
1 parent
1765fb08
数美审核表增加时长字段
Showing
3 changed files
with
16 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/entity/ShyVideofilter.java
| @@ -33,6 +33,11 @@ public class ShyVideofilter { | @@ -33,6 +33,11 @@ public class ShyVideofilter { | ||
| 33 | * 详情消息 | 33 | * 详情消息 |
| 34 | */ | 34 | */ |
| 35 | private String desc_msg; | 35 | private String desc_msg; |
| 36 | + | ||
| 37 | + /** | ||
| 38 | + * 视频时长,单位s | ||
| 39 | + */ | ||
| 40 | + private Integer duration; | ||
| 36 | 41 | ||
| 37 | private Date created_at; | 42 | private Date created_at; |
| 38 | 43 | ||
| @@ -147,5 +152,13 @@ public class ShyVideofilter { | @@ -147,5 +152,13 @@ public class ShyVideofilter { | ||
| 147 | public void setCreated_at(Date created_at) { | 152 | public void setCreated_at(Date created_at) { |
| 148 | this.created_at = created_at; | 153 | this.created_at = created_at; |
| 149 | } | 154 | } |
| 155 | + | ||
| 156 | + public Integer getDuration() { | ||
| 157 | + return duration; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + public void setDuration(Integer duration) { | ||
| 161 | + this.duration = duration; | ||
| 162 | + } | ||
| 150 | 163 | ||
| 151 | } | 164 | } |
| 152 | \ No newline at end of file | 165 | \ No newline at end of file |
src/main/java/com/cnlive/shenhe/job/VideosJob.java
| @@ -53,8 +53,9 @@ public class VideosJob { | @@ -53,8 +53,9 @@ public class VideosJob { | ||
| 53 | logger.info("发送数美检测的videos_id:"+video.getId()); | 53 | logger.info("发送数美检测的videos_id:"+video.getId()); |
| 54 | //数美图片过滤 | 54 | //数美图片过滤 |
| 55 | videosService.videoFilter(video.getId(),CommonConst.DYNAMIC_USER); | 55 | videosService.videoFilter(video.getId(),CommonConst.DYNAMIC_USER); |
| 56 | + }else{ | ||
| 57 | + continue; | ||
| 56 | } | 58 | } |
| 57 | -// continue; | ||
| 58 | } | 59 | } |
| 59 | logger.info("白名单自动通过的videos_id:"+video.getId()); | 60 | logger.info("白名单自动通过的videos_id:"+video.getId()); |
| 60 | video.setUpdater("白名单"); | 61 | video.setUpdater("白名单"); |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| @@ -331,6 +331,7 @@ public class VideosServiceImpl { | @@ -331,6 +331,7 @@ public class VideosServiceImpl { | ||
| 331 | videofilter.setResult_type(type); | 331 | videofilter.setResult_type(type); |
| 332 | videofilter.setToken_id(shyVideos.getTask_id()); | 332 | videofilter.setToken_id(shyVideos.getTask_id()); |
| 333 | videofilter.setVideos_id(cid); | 333 | videofilter.setVideos_id(cid); |
| 334 | + videofilter.setDuration(shyVideos.getDuration()); | ||
| 334 | videofilter.setCreated_at(CommonUtils.getCurrentTime()); | 335 | videofilter.setCreated_at(CommonUtils.getCurrentTime()); |
| 335 | videofilterServiceImpl.impotVideofilter(videofilter); | 336 | videofilterServiceImpl.impotVideofilter(videofilter); |
| 336 | 337 |