|
@@ -100,11 +100,13 @@ public class RankService implements InitializingBean {
|
|
|
public static void commonAddSecondContent(RankParam param, List<Content> result,
|
|
|
String[] publishPool, String[] contentPools,
|
|
|
Map<String, List<Content>> contentMap,
|
|
|
- Map<Integer, AccountIndexReplacePoolConfig> indexReplacePoolConfigMap) {
|
|
|
+ Map<Integer, AccountIndexReplacePoolConfig> indexReplacePoolConfigMap,
|
|
|
+ String strategy) {
|
|
|
List<Content> pool = contentMap.get(contentPools[1]);
|
|
|
if (CollectionUtils.isNotEmpty(pool)) {
|
|
|
pool = contentSourceTypeFilter(param.getStrategy(), pool, 2);
|
|
|
}
|
|
|
+ RankService.printSortLog(strategy, param.getAccountName(), "次条", pool);
|
|
|
if (CollectionUtils.isNotEmpty(pool)) {
|
|
|
int i = RandomUtils.nextInt(0, Math.min(pool.size(), 5));
|
|
|
int j = RandomUtils.nextInt(0, Math.min(pool.size(), 5));
|