From 33ddf707b56c305d131e59a2c8a1833ac7ba627d Mon Sep 17 00:00:00 2001 From: lawrencehj <65707521+lawrencehj@users.noreply.github.com> Date: 星期三, 29 十二月 2021 18:08:33 +0800 Subject: [PATCH] 界面删除设备后同时删除Redis的对应条目,避免其它设备用同样IP登录时出现信息错误 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java index 8c1239e..b6af955 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java @@ -444,7 +444,6 @@ } return new ResponseEntity<String>(ret.toString(),HttpStatus.OK); } - } /** @@ -467,7 +466,7 @@ if (s.length == 2) { String deviceId = s[0]; String channelId = s[1]; - Device device = storager.queryVideoDevice(deviceId); + Device device = redisCatchStorage.getDevice(deviceId); if (device != null) { UUID uuid = UUID.randomUUID(); SSRCInfo ssrcInfo; -- Gitblit v1.8.0