| | |
| | | if (sdkType != null) { |
| | | apiModel.put("alarmType", apiModel.remove("sdkType")); |
| | | if (sdkType.equals("人脸")) { |
| | | apiModel.put("property", apiModel.get("gender") + " " + apiModel.get("ageDescription") + " " + apiModel.get("race")); |
| | | apiModel.put("alarmPerson", |
| | | apiModel.remove("tableName")+" "+ apiModel.remove("idcard")); |
| | | // apiModel.put("property", apiModel.get("gender") + " " + apiModel.get("ageDescription") + " " + apiModel.get("race")); |
| | | apiModel.put("property", apiModel.remove("showLabels")); |
| | | apiModel.put("alarmPerson", apiModel.remove("tableName") + " " + apiModel.remove("idcard")); |
| | | } |
| | | } |
| | | apiModel.put("alarmVideo", apiModel.get("videoNum")); |
| | |
| | | } |
| | | return sqliteAlarmList; |
| | | } |
| | | |
| | | public static Set<String> newAlarmIdSet = new HashSet<>(); |
| | | public static Lock newAlarmIdSetLock = new ReentrantLock(); |
| | | |
| | | public static void putNewAlarmIdSet(Map<String, String> newRemoteAlarm) { |
| | | newAlarmIdSetLock.lock(); |
| | | try { |
| | |
| | | } |
| | | newAlarmIdSetLock.unlock(); |
| | | } |
| | | |
| | | public static boolean removeNewAlarmIdSet(Map<String, String> alarm) { |
| | | newAlarmIdSetLock.lock(); |
| | | boolean success = false; |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public static List<Map<String, String>> newSqliteAlarmListBackup = new ArrayList<>(); |
| | | |
| | | public static void updateVideoUrl() { |
| | | HomeFragment homeFragment = ((MainActivity)BaseApplication.getApplication().activity).fragment_home; |
| | | if (homeFragment == null) { |