JSONArray firstValueArray = dthingsService.firstValue(dthingsRequest);
for (int i = 0; i < firstValueArray.size(); i++) {
if (firstValueArray.getJSONObject(i).getString("deviceCode").equals(e.getDthingsDeviceCode())
&& firstValueArray.getJSONObject(i).getString("paramKey").equals(e.getDthingsParamCode())) {
e.setFirstValue(String.valueOf(firstValueArray.getJSONObject(i).get("value")));
}
}
解析jsonArray
最新推荐文章于 2024-07-26 03:01:08 发布