|
@@ -60,8 +60,8 @@ public class LogHubServiceImpl implements LogHubService {
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("cid", rankItem.getAdId());
|
|
|
json.put("score", rankItem.getScore());
|
|
|
- rankItem.getFeature().put("weight", rankItem.getWeight());
|
|
|
- json.put("feature", rankItem.getFeature());
|
|
|
+ rankItem.getExt().put("weight", rankItem.getWeight());
|
|
|
+ json.put("feature", rankItem.getExt());
|
|
|
scoreResult.add(json);
|
|
|
}
|
|
|
logMap.put("scoreResult", JSON.toJSONString(scoreResult));
|
|
@@ -69,7 +69,7 @@ public class LogHubServiceImpl implements LogHubService {
|
|
|
AdRankItem top1 = rankItems.get(0);
|
|
|
logMap.put("cid", top1.getAdId());
|
|
|
logMap.put("score", top1.getScore());
|
|
|
- JSONObject feature = new JSONObject(top1.getFeature());
|
|
|
+ JSONObject feature = new JSONObject(top1.getExt());
|
|
|
feature.put("weight", top1.getWeight());
|
|
|
logMap.put("feature", feature.toJSONString());
|
|
|
|