Browse Source

feat:添加scoremap值

zhaohaipeng 14 hours ago
parent
commit
11ea9d9eee

+ 4 - 0
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/strategy/RankStrategyBy687.java

@@ -250,6 +250,10 @@ public class RankStrategyBy687 extends RankStrategyBasic {
         String customer = rankItem.getExt().getOrDefault(CUSTOMER_FIELD_NAME, "").toString();
 
         Map<String, Double> scoreMap = new HashMap<>();
+        scoreMap.put("hotRankCustomerViewThreshold", hotRankCustomerViewThreshold.doubleValue());
+        scoreMap.put("hotRankCreativeViewThreshold", hotRankCreativeViewThreshold.doubleValue());
+        scoreMap.put("hotRankCalcWeightCoefficient", hotRankCalcWeightCoefficient);
+        scoreMap.put("hotRankMaxWeight", hotRankMaxWeight);
 
         if (StringUtils.isNotBlank(customer) && allCustomerFeatureMap.containsKey(customer)) {
             HotRankFeatureInfo customerFeatureInfo = allCustomerFeatureMap.get(customer);