Quellcode durchsuchen

feat:解决冲突

zhaohaipeng vor 11 Monaten
Ursprung
Commit
63acb51eb1

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

@@ -290,8 +290,8 @@ public class VideoAdThompsonScorerV2 {
         Double alpha = expParam.getOrDefault("alpha", defaultAlpha);
         Double beta = expParam.getOrDefault("beta", defaultBeta);
 
-        double order = creativeStatistic.getDoubleOrder() + alpha;
-        double exp = creativeStatistic.getDoubleExp() + beta;
+        double order = creativeStatistic.parseOrderToDouble() + alpha;
+        double exp = creativeStatistic.parseExpToDouble() + beta;
 
         if (order == 0 || exp == 0) {
             return 0.0;
@@ -343,7 +343,7 @@ public class VideoAdThompsonScorerV2 {
             return exp;
         }
 
-        public Double getDoubleExp() {
+        public Double parseExpToDouble() {
             if (StringUtils.isBlank(exp)) {
                 return 0.0;
             }
@@ -361,7 +361,7 @@ public class VideoAdThompsonScorerV2 {
             return click;
         }
 
-        public Double getDoubleClick(){
+        public Double parseClickToDouble(){
             if (StringUtils.isBlank(click)){
                 return 0.0;
             }
@@ -379,7 +379,7 @@ public class VideoAdThompsonScorerV2 {
             return order;
         }
 
-        public Double getDoubleOrder(){
+        public Double parseOrderToDouble(){
             if (StringUtils.isBlank(order)){
                 return 0.0;
             }
@@ -397,7 +397,7 @@ public class VideoAdThompsonScorerV2 {
             return cpa;
         }
 
-        public Double getDoubleCpa() {
+        public Double parseCpaToDouble() {
             if (StringUtils.isBlank(cpa)) {
                 return 0.0;
             }