|
@@ -1,6 +1,7 @@
|
|
|
package com.tzld.longarticle.recommend.server.service.recommend.rank.strategy;
|
|
|
|
|
|
|
|
|
+import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.recommend.RankStrategyEnum;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.recommend.ScoreStrategyEnum;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.Content;
|
|
@@ -37,6 +38,9 @@ public class RankV5Strategy implements RankStrategy {
|
|
|
@Autowired
|
|
|
private StrategyIndexScoreWeightService weightService;
|
|
|
|
|
|
+ @ApolloJsonValue("${touliu.account.ghIds:[\"gh_93e00e187787\", \"gh_ac43e43b253b\", \"gh_68e7fdc09fe4\",\"gh_77f36c109fb1\", \"gh_b181786a6c8c\", \"gh_1ee2e1b39ccf\"]}")
|
|
|
+ private List<String> touliuAccountGhIds;
|
|
|
+
|
|
|
public RankResult rank(RankParam param) {
|
|
|
List<Content> result = new ArrayList<>();
|
|
|
|
|
@@ -99,7 +103,7 @@ public class RankV5Strategy implements RankStrategy {
|
|
|
|
|
|
// 头
|
|
|
List<Content> pool1 = contentMap.get(contentPools[0]);
|
|
|
- if ("gh_ac43e43b253b".equals(param.getGhId())) {
|
|
|
+ if (touliuAccountGhIds.contains(param.getGhId())) {
|
|
|
RankService.printSortLog(RankStrategyEnum.ArticleRankV5.getStrategy(), param.getAccountName(), pool1);
|
|
|
}
|
|
|
if (CollectionUtils.isNotEmpty(pool1)) {
|