Commit 79c4e8a03375332e11310a53074005a9278c30c5
1 parent
d19f2736
切换到目击者视频使用白名单审核
Showing
2 changed files
with
10 additions
and
7 deletions
src/main/java/com/cnlive/shenhe/job/VideosJob.java
| @@ -48,9 +48,9 @@ public class VideosJob { | @@ -48,9 +48,9 @@ public class VideosJob { | ||
| 48 | if (shyVideosList.size() > 0) { | 48 | if (shyVideosList.size() > 0) { |
| 49 | for (ShyVideos video : shyVideosList) { | 49 | for (ShyVideos video : shyVideosList) { |
| 50 | //如果网家家的栏目是“目击者”,跳过免审 | 50 | //如果网家家的栏目是“目击者”,跳过免审 |
| 51 | - if(CommonUtils.isNotEmpty(video.getCategory()) && video.getCategory().equals(CommonConst.CATEGORY_WITNESS)){ | ||
| 52 | - continue; | ||
| 53 | - } | 51 | +// if(CommonUtils.isNotEmpty(video.getCategory()) && video.getCategory().equals(CommonConst.CATEGORY_WITNESS)){ |
| 52 | +// continue; | ||
| 53 | +// } | ||
| 54 | logger.info("白名单自动通过的videos_id:"+video.getId()); | 54 | logger.info("白名单自动通过的videos_id:"+video.getId()); |
| 55 | video.setUpdater("白名单"); | 55 | video.setUpdater("白名单"); |
| 56 | //更新点播和审核的视频状态 | 56 | //更新点播和审核的视频状态 |
| @@ -63,7 +63,7 @@ public class VideosJob { | @@ -63,7 +63,7 @@ public class VideosJob { | ||
| 63 | /** | 63 | /** |
| 64 | * 定时发送数美检测视频 | 64 | * 定时发送数美检测视频 |
| 65 | */ | 65 | */ |
| 66 | - @Scheduled(cron="0 0/1 7-23 * * ? ")//每天7点到23点执行,每分钟一次 | 66 | + /** @Scheduled(cron="0 0/1 7-23 * * ? ")//每天7点到23点执行,每分钟一次 |
| 67 | public void videofilter() { | 67 | public void videofilter() { |
| 68 | ShyVideos shyVideos = new ShyVideos(); | 68 | ShyVideos shyVideos = new ShyVideos(); |
| 69 | shyVideos.setCategory(CommonConst.CATEGORY_WITNESS);//目击者 | 69 | shyVideos.setCategory(CommonConst.CATEGORY_WITNESS);//目击者 |
| @@ -71,7 +71,7 @@ public class VideosJob { | @@ -71,7 +71,7 @@ public class VideosJob { | ||
| 71 | shyVideos.setAvsample(CommonConst.AVSAMPLE_SUCCESS);//抽帧完成 | 71 | shyVideos.setAvsample(CommonConst.AVSAMPLE_SUCCESS);//抽帧完成 |
| 72 | List<ShyVideos> shyVideosList = videosService.findshyVideo(shyVideos); | 72 | List<ShyVideos> shyVideosList = videosService.findshyVideo(shyVideos); |
| 73 | //获取所有点播免审sp | 73 | //获取所有点播免审sp |
| 74 | - List<Integer> sites = sitesService.getBusinessList(); | 74 | +// List<Integer> sites = sitesService.getBusinessList(); |
| 75 | if (shyVideosList.size() > 0) { | 75 | if (shyVideosList.size() > 0) { |
| 76 | for (ShyVideos video : shyVideosList) { | 76 | for (ShyVideos video : shyVideosList) { |
| 77 | // if(sites.contains(video.getSpid())){//点播免审sp里面包含视频的sp,则跳过 | 77 | // if(sites.contains(video.getSpid())){//点播免审sp里面包含视频的sp,则跳过 |
| @@ -83,7 +83,7 @@ public class VideosJob { | @@ -83,7 +83,7 @@ public class VideosJob { | ||
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| 86 | - | 86 | + */ |
| 87 | 87 | ||
| 88 | /** | 88 | /** |
| 89 | * 自动退领 | 89 | * 自动退领 |
src/main/java/com/cnlive/shenhe/utils/AntiFraudUtil.java
| @@ -158,8 +158,11 @@ public class AntiFraudUtil { | @@ -158,8 +158,11 @@ public class AntiFraudUtil { | ||
| 158 | } else { | 158 | } else { |
| 159 | jsonObj.put("type", "PASS"); | 159 | jsonObj.put("type", "PASS"); |
| 160 | } | 160 | } |
| 161 | - return jsonObj; | 161 | + }else{//数美请求结果code为失败状态 |
| 162 | + jsonObj.put("type", "REJECT"); | ||
| 163 | + jsonObj.put("desc","code:"+code+",message:"+result.getString("message") ); | ||
| 162 | } | 164 | } |
| 165 | + return jsonObj; | ||
| 163 | } | 166 | } |
| 164 | } catch (Exception e) { | 167 | } catch (Exception e) { |
| 165 | e.printStackTrace(); | 168 | e.printStackTrace(); |