|
@@ -44,11 +44,11 @@ public class RankServiceImpl implements RankService {
|
|
|
@Value("${ad.model.cpm.min:30}")
|
|
|
Double cpmMin=30d;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ static Map<String,Double> bidMap=new HashMap<>();
|
|
|
+ @PostConstruct
|
|
|
+ private void init(){
|
|
|
+ bidMap.put("42",200d);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
public AdRankItem adItemRank(RankRecommendRequestParam request){
|
|
@@ -81,14 +81,14 @@ public class RankServiceImpl implements RankService {
|
|
|
}
|
|
|
}
|
|
|
for(AdRankItem item:rankItems){
|
|
|
-
|
|
|
- item.setBid1(1d);
|
|
|
+ item.setBid1(bidMap.getOrDefault(item.getItemFeature().getAdvertiserId(),1d));
|
|
|
+
|
|
|
item.setBid2(1d);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- item.setCpa(75d);
|
|
|
+ item.setCpa(75d);
|
|
|
|
|
|
|
|
|
|