|
@@ -45,7 +45,7 @@ public class AdRecommendController {
|
|
|
contentMap.put("adId", rankResult.getAdId());
|
|
|
contentMap.put("adScore", rankResult.getScore());
|
|
|
Double ctcvrScore = rankResult.getScoreMap().get("ctcvrScore");
|
|
|
- if (ctcvrScore != null) {
|
|
|
+ if (ctcvrScore != null && ctcvrScore > 0) {
|
|
|
contentMap.put("ecpm", ctcvrScore * rankResult.getCpa() * 1000);
|
|
|
if (rankResult.getExt().get("correctionFactor") != null) {
|
|
|
contentMap.put("revisedBid", ctcvrScore * rankResult.getCpa() * (double) rankResult.getExt().get("correctionFactor"));
|