소스 검색

688加埋点

yaodaoseng 1 개월 전
부모
커밋
0d1d0e55b5
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/strategy/RankStrategyBy688.java

+ 5 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/strategy/RankStrategyBy688.java

@@ -313,7 +313,11 @@ public class RankStrategyBy688 extends RankStrategyBasic {
                 double conver = Double.parseDouble(b3Feature.getOrDefault("ad_conversion_14d", "0"));
                 double smoothCxr = NumUtil.divSmoothV1(conver, view, 1.64);
                 //模型打分和统计计算取打分更低的
-                calibratedScore = Math.min(smoothCxr, calibratedScore);
+                item.getScoreMap().put("cvcvrItemValue", 1.0);
+                if(smoothCxr <= calibratedScore){
+                    calibratedScore = smoothCxr;
+                    item.getScoreMap().put("cvcvrItemValue", 2.0);
+                }
             }
             item.setLrScore(calibratedScore);
             item.getScoreMap().put("originCtcvrScore", originalScore);