Authored by 胡古飞

fix

... ... @@ -66,7 +66,7 @@ public class GoodProductListService implements IGoodProductsService {
private final int maxSmallSortCount = 20;
private final int maxProductSknCountPerSort = 5;
private final int maxCountPerGroup = 10;
private final int maxCountPerGroup = 3;
// private final float firstSknScore = 300;
private final float recommendedSknMaxScore = 200;
... ... @@ -317,7 +317,6 @@ public class GoodProductListService implements IGoodProductsService {
int toIndex = (i + 1) * maxCountPerGroup;
result.put(i, recommendedSknList.subList(fromIndex, toIndex > maxSize ? maxSize : toIndex));
}
Collections.shuffle(recommendedSknList);
return result;
}
... ... @@ -342,6 +341,7 @@ public class GoodProductListService implements IGoodProductsService {
}
}
}
Collections.shuffle(recommendedSknList);
return recommendedSknList;
}
... ...