Commit 53ada911 by guos

会员标签4.0

parent d5a9bc4c
......@@ -25,9 +25,9 @@ public class IndexRequestUtil {
JSONObject jsonObject = JSONObject.parseObject(HttpClient.getResponseString(response));
List<String> result = new ArrayList();
try {
JSONArray jsonArray = jsonObject.getJSONObject("result").getJSONArray("result");
JSONArray jsonArray = jsonObject.getJSONArray("result");
for (Object obj : jsonArray) {
result.add((String)obj);
result.add(String.valueOf(obj));
}
} catch (Exception e) {
DingtalkMessageUtil.sendAlertMessage("widgetId: " + widgetId + " enterpriseId: " + enterpriseId + " parsing store error " );
......@@ -44,7 +44,8 @@ public class IndexRequestUtil {
JSONObject jsonObject = JSONObject.parseObject(HttpClient.getResponseString(response));
List<String> result = new ArrayList();
try {
JSONArray jsonArray = jsonObject.getJSONObject("result").getJSONObject("result").getJSONArray("list");
JSONArray jsonArray = jsonObject.getJSONObject("result").getJSONArray("list");
for (Object obj : jsonArray) {
result.add((String)obj);
}
......
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