优化历史录像下载,目前已测试大华国标级联下载

This commit is contained in:
wangyimeng
2023-03-09 10:22:49 +08:00
parent 8acd64eac6
commit 14c4a3c7e8
4 changed files with 49 additions and 30 deletions

View File

@@ -881,7 +881,13 @@ public class RedisUtil {
return new ArrayList<>(resultKeys);
}
public static List<Object> scan2(String query) {
if (redisTemplate == null) {
redisTemplate = SpringBeanFactory.getBean("redisTemplate");
}
Set<String> keys = redisTemplate.keys(query);
return new ArrayList<>(keys);
}
// ============================== 消息发送与订阅 ==============================
public static void convertAndSend(String channel, JSONObject msg) {
if (redisTemplate == null) {