|
@@ -307,7 +307,10 @@ public class RankStrategyBy688 extends RankStrategyBasic {
|
|
|
double cpmCoefficient = weightParam.getOrDefault("cpmCoefficient", 0.9);
|
|
|
boolean isGuaranteeType = false;
|
|
|
// 查询人群分层信息
|
|
|
- String peopleLayer = reqFeature.get("layer");
|
|
|
+ String peopleLayer = Optional.of(reqFeature)
|
|
|
+ .map(f -> f.get("layer"))
|
|
|
+ .map(s -> s.replace("-炸", ""))
|
|
|
+ .orElse(null);
|
|
|
for (AdRankItem item : result) {
|
|
|
double bid = item.getCpa();
|
|
|
if (scoreParam.getExpCodeSet().contains(correctCpaExp1) || scoreParam.getExpCodeSet().contains(correctCpaExp2)) {
|