定时2分钟获取人员定位标签报警数据任务bug修复
This commit is contained in:
parent
896ff7ba47
commit
3212f171f5
@ -231,7 +231,12 @@ public class GpsLocateTask {
|
|||||||
.execute().body();
|
.execute().body();
|
||||||
JSONObject rsJo = JSON.parseObject(rs);
|
JSONObject rsJo = JSON.parseObject(rs);
|
||||||
if (rsJo.getString("errorCode").equals("200")) {
|
if (rsJo.getString("errorCode").equals("200")) {
|
||||||
JSONArray dataJa = rsJo.getJSONObject("data").getJSONArray("rows");
|
JSONArray dataJa;
|
||||||
|
if (rsJo.get("data") instanceof JSONObject) {
|
||||||
|
dataJa = rsJo.getJSONObject("data").getJSONArray("rows");
|
||||||
|
} else {
|
||||||
|
dataJa = rsJo.getJSONArray("data");
|
||||||
|
}
|
||||||
if (CollUtil.isEmpty(dataJa)) {
|
if (CollUtil.isEmpty(dataJa)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user