|
|
@ -243,7 +243,10 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi |
|
|
|
JSONArray jsonArray = null; |
|
|
|
|
|
|
|
if (body != null) { |
|
|
|
jsonArray = JSON.parseArray(body.string()); |
|
|
|
String jsonString = body.string(); |
|
|
|
if (JSON.isValidArray(jsonString)) { |
|
|
|
jsonArray = JSON.parseArray(jsonString); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, Integer> map = new HashMap<>(); |
|
|
@ -704,7 +707,9 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi |
|
|
|
|
|
|
|
ResponseBody body = response.body(); |
|
|
|
if (body != null) { |
|
|
|
JSONArray jsonArray = JSON.parseArray(body.string()); |
|
|
|
String jsonString = body.string(); |
|
|
|
if (JSON.isValidArray(jsonString)) { |
|
|
|
JSONArray jsonArray = JSON.parseArray(jsonString); |
|
|
|
Map<String, Integer> sumByName = new LinkedHashMap<>(); |
|
|
|
Integer totalFlow1 = 0; |
|
|
|
List<Map<String, String>> list = new ArrayList(); |
|
|
@ -734,7 +739,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi |
|
|
|
} |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return new ArrayList(); |
|
|
|
} |
|
|
|
|
|
|
|