修复通用通道媒体信息获取

This commit is contained in:
lin
2025-11-17 16:14:31 +08:00
parent 469804b8d3
commit c6a7e07a14

View File

@@ -452,12 +452,12 @@ public class MediaServerServiceImpl implements IMediaServerService {
if (mediaServerId == 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);
if (values.isEmpty()) {
return null;
}
return (MediaServer) values.get(0);
return (MediaServer) redisTemplate.opsForHash().get((String) values.get(0), mediaServerId);
}