Pārlūkot izejas kodu

feat:添加671实验

zhaohaipeng 11 mēneši atpakaļ
vecāks
revīzija
313492b8d2

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

@@ -617,14 +617,14 @@ public class VideoAdThompsonScorerV2 {
     }
 
     public List<AdRankItem> thompsonScorerByExp672(ScoreParam param, List<AdPlatformCreativeDTO> adIdList) {
-        return statisticsScore(param, adIdList, exp672Param);
+        return statisticsScore(param, adIdList, exp672Param, 672);
     }
 
     public List<AdRankItem> thompsonScorerByExp671(ScoreParam param, List<AdPlatformCreativeDTO> adIdList) {
-        return statisticsScore(param, adIdList, exp671Param);
+        return statisticsScore(param, adIdList, exp671Param, 671);
     }
 
-    private List<AdRankItem> statisticsScore(ScoreParam param, List<AdPlatformCreativeDTO> adIdList, Map<String, Object> expParam){
+    private List<AdRankItem> statisticsScore(ScoreParam param, List<AdPlatformCreativeDTO> adIdList, Map<String, Object> expParam, int scoreType){
         String cidRedisKey = expParam.getOrDefault("cidActionRedisKey", redisCreativeStatisticsPrefix).toString();
         String vidCidRedisKey = expParam.getOrDefault("vidCidActionRedisKey", redisVideoCreativeStatisticsPrefix).toString();
         double viewThreshold = Double.parseDouble(expParam.getOrDefault("viewThreshold", "7000").toString());
@@ -674,7 +674,7 @@ public class VideoAdThompsonScorerV2 {
                 ext.put("vidCidStatistic", JSON.toJSONString(vidCidStatistic));
                 ext.put("cpa", cpa);
             } catch (Exception e) {
-                log.error("svc=672exp, error: ", e);
+                log.error("svc=statisticsScore, error: ", e);
             }
 
             AdRankItem item = new AdRankItem();
@@ -683,7 +683,7 @@ public class VideoAdThompsonScorerV2 {
             item.setScore(score);
             item.setExt(ext);
             item.setVideoId(param.getVideoId());
-            item.setScore_type(672);
+            item.setScore_type(scoreType);
             item.setWeight(dto.getWeight());
             item.setCreativeCode(dto.getCreativeCode());
             result.add(item);