|
|
@ -1106,10 +1106,10 @@ public class DcWarningServiceImpl implements IDcWarningService { |
|
|
|
JsonNode roocallPostApiGetRegionstNode = objectMapper.readTree(callPostApiGetRegions); |
|
|
|
JsonNode jsonNode = roocallPostApiGetRegionstNode.get("data"); |
|
|
|
JsonNode jsonNodelist = jsonNode.get("list"); |
|
|
|
JsonNode code = jsonNodelist.get(0).get("cameraIndexCode"); |
|
|
|
JsonNode code = jsonNodelist.get(UniversalEnum.ZERO.getNumber()).get("cameraIndexCode"); |
|
|
|
// 使用 textValue() 方法获取纯字符串
|
|
|
|
String codestring = code.textValue(); |
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = videoController.downloadCameraVideo(codestring, formattedTime, 2); |
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = videoController.downloadCameraVideo(codestring, formattedTime, UniversalEnum.ONE.getNumber()); |
|
|
|
|
|
|
|
if (jsonObject.get("code").toString().equals("500")) { |
|
|
|
return null; |
|
|
@ -1137,12 +1137,12 @@ public class DcWarningServiceImpl implements IDcWarningService { |
|
|
|
JsonNode eventsNode = paramsNode.get("events"); |
|
|
|
|
|
|
|
// 假设只有一个事件,只处理第一个事件
|
|
|
|
JsonNode eventDataNode = eventsNode.get(0); |
|
|
|
JsonNode eventDataNode = eventsNode.get(UniversalEnum.ZERO.getNumber()); |
|
|
|
JsonNode dataNode2 = eventDataNode.get("data"); |
|
|
|
JsonNode vehicleRcogResultNode = dataNode2.get("vehicleRcogResult"); |
|
|
|
|
|
|
|
// vehicleRcogResult 对象
|
|
|
|
JsonNode targetAttrsNode = vehicleRcogResultNode.get(0).get("targetAttrs"); |
|
|
|
JsonNode targetAttrsNode = vehicleRcogResultNode.get(UniversalEnum.ZERO.getNumber()).get("targetAttrs"); |
|
|
|
|
|
|
|
|
|
|
|
return targetAttrsNode.get("cameraIndexCode").asText(); |
|
|
@ -1172,7 +1172,7 @@ public class DcWarningServiceImpl implements IDcWarningService { |
|
|
|
paramMap.put("pageSize", "20"); |
|
|
|
paramMap.put("radarIndexCode", cameraIndexCode); |
|
|
|
String body = JSON.toJSON(paramMap).toString(); |
|
|
|
Map<String, String> path = new HashMap<String, String>(2) { |
|
|
|
Map<String, String> path = new HashMap<String, String>(UniversalEnum.TWO.getNumber()) { |
|
|
|
{ |
|
|
|
put("https://", getCamsApi); |
|
|
|
} |
|
|
|