|
@@ -57,14 +57,18 @@ public class RankStrategyBy688 extends RankStrategyBasic {
|
|
|
this.initSparseFeatureNames();
|
|
|
}
|
|
|
|
|
|
- private static final List<String> notHasChannelScenes = new ArrayList<String>() {{
|
|
|
-
|
|
|
- add("longArticles");
|
|
|
- add("fwhhzdyy");
|
|
|
- add("gzhhzdx");
|
|
|
- add("WeCom");
|
|
|
- add("video");
|
|
|
- add("xcxImport");
|
|
|
+ private static final List<String> hasChannelScenes = new ArrayList<String>() {{
|
|
|
+ add("DaiTou");
|
|
|
+ add("GzhTouLiu");
|
|
|
+ add("daitou");
|
|
|
+ add("dyyjs");
|
|
|
+ add("dyyqw");
|
|
|
+ add("fwhdyy");
|
|
|
+ add("gzhhz");
|
|
|
+ add("gzhhzzx");
|
|
|
+ add("shequn");
|
|
|
+ add("touliu");
|
|
|
+ add("xcxdt");
|
|
|
}};
|
|
|
|
|
|
@Override
|
|
@@ -138,7 +142,7 @@ public class RankStrategyBy688 extends RankStrategyBasic {
|
|
|
if (StringUtils.isNotEmpty(rootSourceId)) {
|
|
|
String rootSourceScene = rootSourceId.split("_")[0];
|
|
|
userFeatureMap.put("root_source_scene", rootSourceScene);
|
|
|
- if (!notHasChannelScenes.contains(rootSourceScene) && rootSourceId.split("_").length > 1) {
|
|
|
+ if (hasChannelScenes.contains(rootSourceScene) && rootSourceId.split("_").length > 1) {
|
|
|
String rootSourceChannel = rootSourceId.split("_")[1];
|
|
|
userFeatureMap.put("root_source_channel", rootSourceChannel);
|
|
|
}
|