|
@@ -43,6 +43,9 @@ public class CategoryStrategy implements ScoreStrategy {
|
|
|
Map<Integer, AccountCategoryWeightConfig> categoryWeightConfigMap = Arrays.stream(categoryWeightConfigList).collect(Collectors.toMap(AccountCategoryWeightConfig::getIndex, o -> o));
|
|
|
String[] contentPools = accountContentPoolConfigService.getContentPools(param.getAccountName());
|
|
|
for (Content content : param.getContents()) {
|
|
|
+ if (CollectionUtils.isEmpty(content.getCategory())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Score score = new Score();
|
|
|
score.setStrategy(this);
|
|
|
score.setContentId(content.getId());
|