|
|
@ -1158,6 +1158,10 @@ public class DcWarningServiceImpl implements IDcWarningService { |
|
|
|
JsonNode roocallPostApiGetRegionstNode = objectMapper.readTree(callPostApiGetRegions); |
|
|
|
JsonNode jsonNode = roocallPostApiGetRegionstNode.get("data"); |
|
|
|
JsonNode jsonNodelist = jsonNode.get("list"); |
|
|
|
if (jsonNodelist.isEmpty()){ |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
JsonNode code = jsonNodelist.get(UniversalEnum.ZERO.getNumber()).get("cameraIndexCode"); |
|
|
|
// 使用 textValue() 方法获取纯字符串
|
|
|
|
String codestring = code.textValue(); |
|
|
|