Commit fcc348c8 by carrieyzzhang

value special

parent fe506cd7
...@@ -969,19 +969,17 @@ public class EventServiceImpl implements EventService { ...@@ -969,19 +969,17 @@ public class EventServiceImpl implements EventService {
if (attrName.equals("_cid") || attrName.equals("_campaignid")) { if (attrName.equals("_cid") || attrName.equals("_campaignid")) {
String values = String.join(",", set); String values = String.join(",", set);
String url = Constant.trackingUrl + "/api/"+ app +"/event/find/valuespecail?attrName=" + attrName + "&values=" + values; String url = Constant.trackingUrl + "/api/"+ app +"/event/find/valuespecail?attrName=" + attrName + "&values=" + values;
String response = HttpClientUtil.doHttpGetRequest(url, "io"); try {
if (!StringUtil.isEmpty(response)) { String response = HttpClientUtil.doHttpGetRequest(url, "io");
try { if (!StringUtil.isEmpty(response)) {
JSONObject ob = new JSONObject(response); JSONObject ob = new JSONObject(response);
JSONObject content = ob.getJSONObject("content"); JSONObject content = ob.getJSONObject("content");
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
result = mapper.readValue(content.toString(), Map.class); result = mapper.readValue(content.toString(), Map.class);
} else {
} catch (Exception e) {
result.put("value", list); result.put("value", list);
} }
} catch (Exception e) {
} else {
result.put("value", list); result.put("value", list);
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment