Browse Source

视频回放

hexiao 1 year ago
parent
commit
a7f18eaaba

+ 8 - 8
hazard-sdk/src/main/java/com/ozs/controller/upload/GeoHazardMonitorTokenController.java

@@ -197,14 +197,14 @@ public class GeoHazardMonitorTokenController {
                 respMsgAlarmVo.setIsCancel(2);
                 respMsgAlarmVo.setCancelTime(null);
                 // 记录要合成报警视频的报警id
-                Map<String, Object> map = redisCache.getCacheMap(RedisConstant.key);
-                if (ObjectUtils.isEmpty(map)) {
-                    map = new HashMap<>();
-                }
-                map.put(msgAlarm.getAlarmId(), msgAlarm.getAlarmTime());
-                log.info("map:{}", map);
-                redisCache.deleteObject(RedisConstant.key);
-                redisCache.setCacheMap(RedisConstant.key, map);
+//                Map<String, Object> map = redisCache.getCacheMap(RedisConstant.key);
+//                if (ObjectUtils.isEmpty(map)) {
+//                    map = new HashMap<>();
+//                }
+//                map.put(msgAlarm.getAlarmId(), msgAlarm.getAlarmTime());
+//                log.info("map:{}", map);
+//                redisCache.deleteObject(RedisConstant.key);
+//                redisCache.setCacheMap(RedisConstant.key, map);
             } else {
                 BeanUtils.copyProperties(reqMsgAlarmVo, msgAlarmVice);
                 String[] imageUrl = reqMsgAlarmVo.getImageUrls();