mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 22:47:49 +08:00
去除调试日志
This commit is contained in:
parent
e3f880627e
commit
227239f7f7
@ -87,7 +87,6 @@ public class EventPublisher {
|
|||||||
}else {
|
}else {
|
||||||
channels = deviceChannels;
|
channels = deviceChannels;
|
||||||
}
|
}
|
||||||
System.out.println(5);
|
|
||||||
outEvent.setChannels(channels);
|
outEvent.setChannels(channels);
|
||||||
outEvent.setType(type);
|
outEvent.setType(type);
|
||||||
if (platform != null) {
|
if (platform != null) {
|
||||||
|
|||||||
@ -570,17 +570,13 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
|||||||
for (DeviceChannel deviceChannel : deviceChannelList) {
|
for (DeviceChannel deviceChannel : deviceChannelList) {
|
||||||
DeviceChannel channelInDb = allChannelMap.get(deviceChannel.getDataDeviceId() + deviceChannel.getDeviceId());
|
DeviceChannel channelInDb = allChannelMap.get(deviceChannel.getDataDeviceId() + deviceChannel.getDeviceId());
|
||||||
if (channelInDb != null) {
|
if (channelInDb != null) {
|
||||||
System.out.println(1);
|
|
||||||
deviceChannel.setStreamId(channelInDb.getStreamId());
|
deviceChannel.setStreamId(channelInDb.getStreamId());
|
||||||
deviceChannel.setHasAudio(channelInDb.isHasAudio());
|
deviceChannel.setHasAudio(channelInDb.isHasAudio());
|
||||||
deviceChannel.setId(channelInDb.getId());
|
deviceChannel.setId(channelInDb.getId());
|
||||||
if (channelInDb.getStatus() != null && !channelInDb.getStatus().equalsIgnoreCase(deviceChannel.getStatus())){
|
if (channelInDb.getStatus() != null && !channelInDb.getStatus().equalsIgnoreCase(deviceChannel.getStatus())){
|
||||||
System.out.println(2);
|
|
||||||
List<Platform> platformList = platformChannelMapper.queryParentPlatformByChannelId(deviceChannel.getDeviceId());
|
List<Platform> platformList = platformChannelMapper.queryParentPlatformByChannelId(deviceChannel.getDeviceId());
|
||||||
if (!CollectionUtils.isEmpty(platformList)){
|
if (!CollectionUtils.isEmpty(platformList)){
|
||||||
System.out.println(3);
|
|
||||||
platformList.forEach(platform->{
|
platformList.forEach(platform->{
|
||||||
System.out.println(4);
|
|
||||||
eventPublisher.catalogEventPublish(platform, deviceChannel.buildCommonGBChannelForStatus(), deviceChannel.getStatus().equals("ON")? CatalogEvent.ON:CatalogEvent.OFF);
|
eventPublisher.catalogEventPublish(platform, deviceChannel.buildCommonGBChannelForStatus(), deviceChannel.getStatus().equals("ON")? CatalogEvent.ON:CatalogEvent.OFF);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user