|
@@ -7,7 +7,6 @@ import com.tzld.longarticle.recommend.server.service.recommend.rank.RankItem;
|
|
|
import com.tzld.longarticle.recommend.server.service.recommend.rank.RankParam;
|
|
|
import com.tzld.longarticle.recommend.server.service.recommend.rank.RankResult;
|
|
|
import com.tzld.longarticle.recommend.server.service.recommend.rank.RankStrategy;
|
|
|
-import com.tzld.longarticle.recommend.server.service.recommend.score.ScoreResult;
|
|
|
import com.tzld.longarticle.recommend.server.service.recommend.score.ScoreService;
|
|
|
import com.tzld.longarticle.recommend.server.util.CommonCollectionUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -31,9 +30,6 @@ public class RandomRankStrategy implements RankStrategy {
|
|
|
public RankResult rank(RankParam param) {
|
|
|
List<Content> result = new ArrayList<>();
|
|
|
String[] contentPools = accountContentPoolConfigService.getContentPools(param.getAccountName());
|
|
|
- ScoreResult scoreResult = scoreService.score(RankStrategy.convertToScoreParam(param));
|
|
|
-
|
|
|
- Map<String, Map<String, Double>> scoreMap = scoreResult.getScoreMap();
|
|
|
|
|
|
List<RankItem> items = CommonCollectionUtils.toList(param.getContents(), c -> {
|
|
|
RankItem item = new RankItem();
|