解决推流设备状态更新异常

This commit is contained in:
lin
2025-03-19 16:22:38 +08:00
parent 06de25bb4d
commit ccafa0ea01
3 changed files with 5 additions and 2 deletions

View File

@@ -471,6 +471,9 @@ public class StreamPushServiceImpl implements IStreamPushService {
public void online(List<StreamPushItemFromRedis> onlineStreams) {
// 更新部分设备上线streamPushService
List<StreamPush> streamPushList = streamPushMapper.getListFromRedis(onlineStreams);
if (streamPushList.isEmpty()) {
return;
}
List<CommonGBChannel> commonGBChannelList = gbChannelService.queryListByStreamPushList(streamPushList);
gbChannelService.online(commonGBChannelList);
}