isc的ai预警bug修复
This commit is contained in:
parent
200c25c5b4
commit
f7373aa125
@ -401,7 +401,7 @@ public class HikvisionCall {
|
|||||||
JSONArray eventDetails = dataEvent.getJSONArray("eventDetails");
|
JSONArray eventDetails = dataEvent.getJSONArray("eventDetails");
|
||||||
JSONObject eventDetail = eventDetails.getJSONObject(0);
|
JSONObject eventDetail = eventDetails.getJSONObject(0);
|
||||||
ability = eventDetail.getString("ability");
|
ability = eventDetail.getString("ability");
|
||||||
if (Objects.equals(ability, EVENT_VSS)) {
|
if (Objects.equals(ability, EVENT_VSS) || Objects.equals(ability, EVENT_AIMMS)) {
|
||||||
log.info("AI识别告警=======" + paramsJo);
|
log.info("AI识别告警=======" + paramsJo);
|
||||||
addAiAnalyseHardWareRecord(eventDetail, dataEvent.getString("happenTime"));
|
addAiAnalyseHardWareRecord(eventDetail, dataEvent.getString("happenTime"));
|
||||||
} else if (Objects.equals(ability, EVENT_IAS)) {
|
} else if (Objects.equals(ability, EVENT_IAS)) {
|
||||||
@ -487,19 +487,6 @@ public class HikvisionCall {
|
|||||||
}
|
}
|
||||||
} else if (Objects.equals(ability1, EVENT_IAS)) {
|
} else if (Objects.equals(ability1, EVENT_IAS)) {
|
||||||
addFrontierProtectionNoNetData(jsonObject);
|
addFrontierProtectionNoNetData(jsonObject);
|
||||||
} else if (Objects.equals(ability1, "")) {
|
|
||||||
JSONArray eventsArray = jsonObject.getJSONArray("events");
|
|
||||||
if (eventsArray.size() > 0) {
|
|
||||||
JSONObject dataEvent = eventsArray.getJSONObject(0);
|
|
||||||
JSONArray eventDetails = dataEvent.getJSONArray("eventDetails");
|
|
||||||
JSONObject eventDetail = eventDetails.getJSONObject(0);
|
|
||||||
String ability = eventDetail.getString("ability");
|
|
||||||
JSONObject paramsJo = jsonObject.getJSONObject("params");
|
|
||||||
if (Objects.equals(ability, EVENT_AIMMS)) {
|
|
||||||
log.info("AI识别告警=======" + paramsJo);
|
|
||||||
addAiAnalyseHardWareRecord(eventDetail, dataEvent.getString("happenTime"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.ok();
|
return Result.ok();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user