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