|
@@ -69,7 +69,6 @@ public class CopcV3DataHelper {
|
|
|
|
|
|
|
|
int bucketNo = getBucketNo(score);
|
|
int bucketNo = getBucketNo(score);
|
|
|
String event = targetingConversion == null ? null : targetingConversion.trim();
|
|
String event = targetingConversion == null ? null : targetingConversion.trim();
|
|
|
-// log.info("getLandingCoefficient score={}, landingPageType={},targetingConversion={},bucketNo={}",score,landingPageType, targetingConversion,bucketNo);
|
|
|
|
|
if (event != null && !event.isEmpty()) {
|
|
if (event != null && !event.isEmpty()) {
|
|
|
Double coefficient;
|
|
Double coefficient;
|
|
|
if (bucketNo > 0 && landingPageType != null) {
|
|
if (bucketNo > 0 && landingPageType != null) {
|
|
@@ -77,7 +76,6 @@ public class CopcV3DataHelper {
|
|
|
landingPageType, bucketNo);
|
|
landingPageType, bucketNo);
|
|
|
coefficient = getFiniteDoubleValue(landingKey);
|
|
coefficient = getFiniteDoubleValue(landingKey);
|
|
|
if (coefficient != null) {
|
|
if (coefficient != null) {
|
|
|
-// log.info("landing key={}",landingKey);
|
|
|
|
|
return coefficient;
|
|
return coefficient;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -85,13 +83,11 @@ public class CopcV3DataHelper {
|
|
|
String bucketKey = String.format("%s:%s:%s", BUCKET_KEY_PREFIX, event, bucketNo);
|
|
String bucketKey = String.format("%s:%s:%s", BUCKET_KEY_PREFIX, event, bucketNo);
|
|
|
coefficient = getFiniteDoubleValue(bucketKey);
|
|
coefficient = getFiniteDoubleValue(bucketKey);
|
|
|
if (coefficient != null) {
|
|
if (coefficient != null) {
|
|
|
-// log.info("bucketKey key={}",bucketKey);
|
|
|
|
|
return coefficient;
|
|
return coefficient;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
coefficient = getFiniteDoubleValue(EVENT_KEY_PREFIX + ":" + event);
|
|
coefficient = getFiniteDoubleValue(EVENT_KEY_PREFIX + ":" + event);
|
|
|
if (coefficient != null) {
|
|
if (coefficient != null) {
|
|
|
-// log.info("EVENT_KEY_PREFIX key={}",EVENT_KEY_PREFIX + ":" + event);
|
|
|
|
|
return coefficient;
|
|
return coefficient;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|