|
@@ -46,6 +46,9 @@ public abstract class RankStrategyBasic implements RankStrategy {
|
|
|
@ApolloJsonValue("${h5.score.suppress:{}}")
|
|
@ApolloJsonValue("${h5.score.suppress:{}}")
|
|
|
private Map<String, Double> h5ScoreSuppress;
|
|
private Map<String, Double> h5ScoreSuppress;
|
|
|
|
|
|
|
|
|
|
+ @ApolloJsonValue("${h5.score.suppress.customer.white:[]}")
|
|
|
|
|
+ private Set<Long> customerIdWhiteSet;
|
|
|
|
|
+
|
|
|
@Value("${guarantee.exp:742}")
|
|
@Value("${guarantee.exp:742}")
|
|
|
protected String guaranteeExp;
|
|
protected String guaranteeExp;
|
|
|
|
|
|
|
@@ -1190,6 +1193,14 @@ public abstract class RankStrategyBasic implements RankStrategy {
|
|
|
if (org.springframework.util.CollectionUtils.isEmpty(h5ScoreSuppress) || Objects.isNull(item)) {
|
|
if (org.springframework.util.CollectionUtils.isEmpty(h5ScoreSuppress) || Objects.isNull(item)) {
|
|
|
return 1.0;
|
|
return 1.0;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ Long customerId = item.getCustomerId();
|
|
|
|
|
+
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(customerIdWhiteSet) && Objects.nonNull(customerId) && customerIdWhiteSet.contains(customerId)) {
|
|
|
|
|
+ log.info("getH5SuppressWeight 客户命中白名单, customerId:{}", customerId);
|
|
|
|
|
+ return 1.0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
try {
|
|
try {
|
|
|
Integer landingPageType = item.getLandingPageType();
|
|
Integer landingPageType = item.getLandingPageType();
|
|
|
String profession = item.getProfession();
|
|
String profession = item.getProfession();
|