mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-23 13:37:49 +08:00
修复通用通道媒体信息获取
This commit is contained in:
parent
469804b8d3
commit
c6a7e07a14
@ -452,12 +452,12 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||||||
if (mediaServerId == null) {
|
if (mediaServerId == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String scanKey = String.format("%s_*", VideoManagerConstants.MEDIA_SERVER_PREFIX);
|
String scanKey = String.format("%s*", VideoManagerConstants.MEDIA_SERVER_PREFIX);
|
||||||
List<Object> values = RedisUtil.scan(redisTemplate, scanKey);
|
List<Object> values = RedisUtil.scan(redisTemplate, scanKey);
|
||||||
if (values.isEmpty()) {
|
if (values.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (MediaServer) values.get(0);
|
return (MediaServer) redisTemplate.opsForHash().get((String) values.get(0), mediaServerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user