|
@@ -66,10 +66,16 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
String[] withoutAdVideoIdsArr=withoutAdVideoIds.split(",");
|
|
String[] withoutAdVideoIdsArr=withoutAdVideoIds.split(",");
|
|
for(String videoId:withoutAdVideoIdsArr){
|
|
for(String videoId:withoutAdVideoIdsArr){
|
|
if(videoId.equals(requestParam.getVideoId()+"")){
|
|
if(videoId.equals(requestParam.getVideoId()+"")){
|
|
- Map<String,Object> result=new HashMap<>();
|
|
|
|
- result.put("ad_predict", 1);
|
|
|
|
- result.put("no_ad_strategy", "no_ad_with_video_in_white_list");
|
|
|
|
- return result;
|
|
|
|
|
|
+ if(requestParam.getAppType().equals(0)
|
|
|
|
+ ||requestParam.getAppType().equals(4)
|
|
|
|
+ ||requestParam.getAppType().equals(5)
|
|
|
|
+ ||requestParam.getAppType().equals(21)
|
|
|
|
+ ){
|
|
|
|
+ Map<String,Object> result=new HashMap<>();
|
|
|
|
+ result.put("ad_predict", 1);
|
|
|
|
+ result.put("no_ad_strategy", "no_ad_with_video_in_white_list");
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
boolean isHit = false;
|
|
boolean isHit = false;
|