Commit 02657f145c7098fb3fefd655db3ab7d16dc5d897

Authored by 徐近程
1 parent 378d49ce

免审update

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
@@ -153,17 +153,19 @@ public class VideosControllerApi { @@ -153,17 +153,19 @@ public class VideosControllerApi {
153 shyVideos1.setCategory(category);//传入栏目分类 153 shyVideos1.setCategory(category);//传入栏目分类
154 shyVideos1.setVideo_user_id(sid);//传入sid 154 shyVideos1.setVideo_user_id(sid);//传入sid
155 videosService.getShenheType(shyVideos1);//获取审核类型 155 videosService.getShenheType(shyVideos1);//获取审核类型
156 -  
157 - if(shyVideos1.getShenhe_type()==CommonConst.AUDIT_TYPE_USER){//如果审核类型是人工审核,按照原有规则  
158 - if (CommonUtils.isNotNull(duration) && duration > 80) {  
159 - shyVideos1 = avsample(shyVideos1);//视频至少可以抽8张,请求抽帧  
160 - }  
161 - }else if(shyVideos1.getShenhe_type()==CommonConst.AUDIT_TYPE_MACHANE){//如果审核类型是机审  
162 - if (CommonUtils.isNotNull(duration) && duration < 60) {//"目击者"视频,小于60秒的抽帧  
163 - shyVideos1 = avsample(shyVideos1);  
164 - }else{//机审超过60秒的改为人工审核  
165 - shyVideos1.setShenhe_type(3);  
166 - } 156 +
  157 + if(shyVideos1.getShenhe_type()!=1){
  158 + if(shyVideos1.getShenhe_type()==CommonConst.AUDIT_TYPE_USER){//如果审核类型是人工审核,按照原有规则
  159 + if (CommonUtils.isNotNull(duration) && duration > 80) {
  160 + shyVideos1 = avsample(shyVideos1);//视频至少可以抽8张,请求抽帧
  161 + }
  162 + }else if(shyVideos1.getShenhe_type()==CommonConst.AUDIT_TYPE_MACHANE){//如果审核类型是机审
  163 + if (CommonUtils.isNotNull(duration) && duration < 60) {//"目击者"视频,小于60秒的抽帧
  164 + shyVideos1 = avsample(shyVideos1);
  165 + }else{//机审超过60秒的改为人工审核
  166 + shyVideos1.setShenhe_type(3);
  167 + }
  168 + }
167 } 169 }
168 logger.info("当前视频类型是:"+shyVideos1.getShenhe_type()); 170 logger.info("当前视频类型是:"+shyVideos1.getShenhe_type());
169 boolean result = videosService.impotVideo(shyVideos1); 171 boolean result = videosService.impotVideo(shyVideos1);