|
@@ -14,10 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.HashSet;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.Set;
|
|
|
+import java.util.*;
|
|
|
import java.util.concurrent.LinkedBlockingDeque;
|
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -58,11 +55,19 @@ public class LogHubServiceImpl implements LogHubService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ logMap.put("abExpCode", abExpCode);
|
|
|
|
|
|
- logMap.put("scoreResult", JSON.toJSONString(rankItems));
|
|
|
+ List<JSONObject> scoreResult = new ArrayList<>();
|
|
|
+ for (AdRankItem rankItem : rankItems) {
|
|
|
+ JSONObject json = new JSONObject();
|
|
|
+ json.put("adId", rankItem.getAdId());
|
|
|
+ json.put("score", rankItem.getScore());
|
|
|
+ json.put("ext", rankItem.getExt());
|
|
|
+ scoreResult.add(json);
|
|
|
+ }
|
|
|
+ logMap.put("scoreResult", JSON.toJSONString(scoreResult));
|
|
|
logMap.put("creativeList", JSON.toJSONString(adIdList));
|
|
|
|
|
|
- logMap.put("abExpCode", abExpCode);
|
|
|
logMap.put("adAbGroup", requestParam.getAdAbGroup());
|
|
|
logMap.put("scoreStrategy", scoreStrategy);
|
|
|
logMap.put("appType", requestParam.getAppType());
|