Kaynağa Gözat

Merge branch 'feature_20240528_zhaohaipeng_video_ad_thompson_v2' into test

zhaohaipeng 1 yıl önce
ebeveyn
işleme
ce3d0c2a6c

+ 10 - 0
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/VideoAdThompsonScorerV2.java

@@ -256,6 +256,11 @@ public class VideoAdThompsonScorerV2 {
         this.calcScore(result, adIdList,1d, creativeExpSum, videoCreativeExpSum, creativeStatisticsMap, videoCreativeStatisticsMap, exp669Param);
         result.sort(equalsRandomComparator());
 
+        for (AdRankItem adRankItem : result) {
+            adRankItem.setVideoId(param.getVideoId());
+            adRankItem.setScore_type(699);
+        }
+
         return result;
     }
 
@@ -267,6 +272,11 @@ public class VideoAdThompsonScorerV2 {
         this.calcScore(result, adIdList, 0.0, 0.0, 0.0, creativeStatisticsMap, videoCreativeStatisticsMap, exp670Param);
         result.sort(equalsRandomComparator());
 
+        for (AdRankItem adRankItem : result) {
+            adRankItem.setVideoId(param.getVideoId());
+            adRankItem.setScore_type(670);
+        }
+
         return result;
     }