[集群] 修复同步通道时的通道上下线消息发送

This commit is contained in:
648540858
2025-01-21 17:00:37 +08:00
parent 3bae4ce63e
commit 01f491c026
3 changed files with 15 additions and 2 deletions

View File

@@ -244,5 +244,15 @@ public class DeviceChannel extends CommonGBChannel {
return deviceChannel;
}
public CommonGBChannel buildCommonGBChannelForStatus() {
CommonGBChannel commonGBChannel = new CommonGBChannel();
commonGBChannel.setGbId(id);
commonGBChannel.setGbDeviceId(deviceId);
commonGBChannel.setGbName(name);
commonGBChannel.setDataType(ChannelDataType.GB28181.value);
commonGBChannel.setDataDeviceId(getDataDeviceId());
return commonGBChannel;
}
}