|
@@ -67,8 +67,8 @@ public class RankService {
|
|
|
}
|
|
|
// 1 通过 apptype 判断该小程序走怎样的排序策略。
|
|
|
if (param.getAppType() == AppTypeEnum.PIAO_QUAN_MEIHAO_ZHUFU.getCode() && Objects.equals(param.getCategoryId(), 100)) {
|
|
|
- List<Video> results = new ArrayList<>();
|
|
|
- results.addAll(extractAndSort(param, BlessRecallStrategy.PUSH_FORM));
|
|
|
+ List<Video> results = new ArrayList<>(extractAndSort(param, BlessRecallStrategy.PUSH_FORM));
|
|
|
+ removeDuplicate(results);
|
|
|
List<String> videoIdKeys = results.stream()
|
|
|
.map(t -> param.getRankKeyPrefix() + t.getVideoId())
|
|
|
.collect(Collectors.toList());
|
|
@@ -80,9 +80,6 @@ public class RankService {
|
|
|
}
|
|
|
Collections.sort(results, Comparator.comparingDouble(o -> -o.getSortScore()));
|
|
|
}
|
|
|
- results.addAll(extractAndSort(param, RegionRealtimeRecallStrategyV2.PUSH_FORM));
|
|
|
- results.addAll(extractAndSort(param, RegionRealtimeRecallStrategyV3.PUSH_FORM));
|
|
|
- removeDuplicate(results);
|
|
|
return new RankResult(results);
|
|
|
}
|
|
|
|