|
@@ -586,8 +586,8 @@ public class VideoAdThompsonScorerV2 {
|
|
|
Long cid = dto.getCreativeId();
|
|
|
try {
|
|
|
String pairOrSingle = "pair";
|
|
|
- CreativeStatistic vidCidStatistic = paramVidCidRedisCache.get(cid);
|
|
|
- CreativeStatistic cidStatistic = paramCidRedisCache.get(cid);
|
|
|
+ CreativeStatistic vidCidStatistic = paramVidCidRedisCache.getOrDefault(cid, new CreativeStatistic());
|
|
|
+ CreativeStatistic cidStatistic = paramCidRedisCache.getOrDefault(cid, new CreativeStatistic());
|
|
|
|
|
|
double order = vidCidStatistic.parseOrderToDouble();
|
|
|
double exp = vidCidStatistic.parseExpToDouble();
|