|
@@ -86,6 +86,7 @@ public class RankService implements InitializingBean {
|
|
|
if (CollectionUtil.isEmpty(contentList)) {
|
|
|
return;
|
|
|
}
|
|
|
+ contentList = contentList.subList(0, Math.min(contentList.size(), 200));
|
|
|
for (Content content : contentList) {
|
|
|
JSONObject obj = new JSONObject();
|
|
|
obj.put("id", content.getId());
|
|
@@ -163,7 +164,7 @@ public class RankService implements InitializingBean {
|
|
|
pool = contentSourceTypeFilter(param.getStrategy(), pool, 3);
|
|
|
}
|
|
|
if (CollectionUtils.isNotEmpty(pool) && param.getSize() > result.size()) {
|
|
|
- RankService.printSortLog(strategy, param.getAccountName(), "3-8", pool.subList(0, Math.min(pool.size(), 200)));
|
|
|
+ RankService.printSortLog(strategy, param.getAccountName(), "3-8", pool);
|
|
|
result.addAll(pool.subList(0, Math.min(pool.size(), param.getSize() - result.size())));
|
|
|
}
|
|
|
}
|