|
@@ -81,16 +81,18 @@ public class SecurityStrategy implements FilterStrategy {
|
|
return param.getVideoIds();
|
|
return param.getVideoIds();
|
|
}
|
|
}
|
|
|
|
|
|
- // 未命中实验
|
|
|
|
boolean hit = securityGlobalSwitch
|
|
boolean hit = securityGlobalSwitch
|
|
|| CommonCollectionUtils.contains(param.getAbExpCodes(), securityAbExpCode);
|
|
|| CommonCollectionUtils.contains(param.getAbExpCodes(), securityAbExpCode);
|
|
|
|
+ log.info("SecurityStrategy hit={}", hit);
|
|
if (!hit) {
|
|
if (!hit) {
|
|
return param.getVideoIds();
|
|
return param.getVideoIds();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ log.info("SecurityStrategy excludeScenes={}", JSONUtils.toJson(excludeScenes));
|
|
if (CollectionUtils.isEmpty(excludeScenes)
|
|
if (CollectionUtils.isEmpty(excludeScenes)
|
|
|| !CommonCollectionUtils.contains(excludeScenes, param.getHotSceneType())) {
|
|
|| !CommonCollectionUtils.contains(excludeScenes, param.getHotSceneType())) {
|
|
|
|
|
|
|
|
+ log.info("SecurityStrategy videoFilterCityTagIdMap={}", JSONUtils.toJson(videoFilterCityTagIdMap));
|
|
if (MapUtils.isEmpty(videoFilterCityTagIdMap)
|
|
if (MapUtils.isEmpty(videoFilterCityTagIdMap)
|
|
|| !videoFilterCityTagIdMap.containsKey(param.getCityCode())) {
|
|
|| !videoFilterCityTagIdMap.containsKey(param.getCityCode())) {
|
|
return param.getVideoIds();
|
|
return param.getVideoIds();
|
|
@@ -98,6 +100,7 @@ public class SecurityStrategy implements FilterStrategy {
|
|
|
|
|
|
|
|
|
|
Set<Long> filterVideos = videoCache.getUnchecked(param.getCityCode());
|
|
Set<Long> filterVideos = videoCache.getUnchecked(param.getCityCode());
|
|
|
|
+ log.info("SecurityStrategy filterVideos={}", JSONUtils.toJson(filterVideos));
|
|
if (CollectionUtils.isEmpty(filterVideos)) {
|
|
if (CollectionUtils.isEmpty(filterVideos)) {
|
|
return param.getVideoIds();
|
|
return param.getVideoIds();
|
|
}
|
|
}
|