|
@@ -2,7 +2,6 @@ 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.ContentCountMonitor;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.recommend.ScoreStrategyEnum;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.Content;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.crawler.Article;
|
|
@@ -112,6 +111,9 @@ public class RankV5Strategy implements RankStrategy {
|
|
|
|
|
|
// 头
|
|
|
List<Content> pool1 = contentMap.get(contentPools[0]);
|
|
|
+ if (CollectionUtils.isNotEmpty(pool1)) {
|
|
|
+ pool1 = RankService.contentSourceTypeFilter(param.getStrategy(), pool1, 1);
|
|
|
+ }
|
|
|
RankService.printSortLog(param.getStrategy(), param.getAccountName(), "头条", pool1);
|
|
|
if (CollectionUtils.isNotEmpty(pool1)) {
|
|
|
result.add(pool1.get(0));
|