|
@@ -36,6 +36,10 @@ public class ViewCountRateStrategy implements ScoreStrategy {
|
|
|
String[] contentPools = accountContentPoolConfigService.getContentPools(param.getAccountName());
|
|
|
List<AccountAvgInfo> avgInfoList = accountAvgInfoRepository.getAllByGhIdEqualsAndStatusEquals(param.getGhId(), 1);
|
|
|
double avgViewCountFirst = accountIndexAvgViewCountService.getAvgReadCountByDB(avgInfoList, param.getGhId(), 1);
|
|
|
+ // 缺省头条均值设置为2w
|
|
|
+ if (avgViewCountFirst < 10) {
|
|
|
+ avgViewCountFirst = 20000D;
|
|
|
+ }
|
|
|
for (Content content : param.getContents()) {
|
|
|
for (int i = 0; i < contentPools.length; i++) {
|
|
|
if (!contentPools[i].equals(content.getContentPoolType())) {
|