Commit 21d0517e471fdd6de3f54f4ee5f444010cefdfd3

Authored by 徐近程
1 parent 1ac57455

update

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
... ... @@ -175,9 +175,22 @@ public class VideosControllerApi {
175 175 boolean result = videosService.impotVideo(shyVideos1);
176 176  
177 177 if("9".equals(source)){
178   - shyVideos1.setUpdater("白名单");
179   - // 更新点播和审核的视频状态
180   - videosService.updateDianboAndShenhe(shyVideos1, 3);
  178 + ShyVideos shyVideos = new ShyVideos();
  179 + shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_FREE);// 审核类型为免审
  180 + shyVideos.setState(CommonConst.AUDIT_INTT);// 审核状态为未审核
  181 + List<ShyVideos> shyVideosList = videosService.findshyVideo(shyVideos);
  182 + if (shyVideosList.size() > 0) {
  183 + for (ShyVideos video : shyVideosList) {
  184 + String source1 = video.getSource();
  185 + if(!"9".equals(source1)){
  186 + continue;
  187 + }
  188 + logger.info("当前白名单通过的videos_id:"+video.getId());
  189 + video.setUpdater("白名单");
  190 + // 更新点播和审核的视频状态
  191 + videosService.updateDianboAndShenhe(video, 3);
  192 + }
  193 + }
181 194 }
182 195  
183 196 if (result == true) {
... ...
src/main/java/com/cnlive/shenhe/job/VideosJob.java
... ... @@ -43,13 +43,17 @@ public class VideosJob {
43 43 List<ShyVideos> shyVideosList = videosService.findshyVideo(shyVideos);
44 44 if (shyVideosList.size() > 0) {
45 45 for (ShyVideos video : shyVideosList) {
46   - logger.info("当前白名单通过的videos_id:"+video.getId());
  46 + String source = video.getSource();
  47 + if("9".equals(source)){
  48 + continue;
  49 + }
  50 + logger.info("当前白名单通过的videos_id:"+video.getId());
47 51 video.setUpdater("白名单");
48 52 // 更新点播和审核的视频状态
49 53 videosService.updateDianboAndShenhe(video, 3);
50 54 }
51 55 }
52   - }
  56 + }
53 57  
54 58 /**
55 59 * 定时向易盾发送视频进行检测
... ...