| | |
| | | deviceChannel.setLatitude(gbStream.getLatitude()); |
| | | deviceChannel.setDeviceId(deviceGBId); |
| | | deviceChannel.setManufacture("wvp-pro"); |
| | | deviceChannel.setStatus(gbStream.isStatus()?1:0); |
| | | // deviceChannel.setStatus(gbStream.isStatus()?1:0); |
| | | deviceChannel.setStatus(1); |
| | | deviceChannel.setParentId(catalogId ==null?gbStream.getCatalogId():catalogId); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(sipConfig.getDomain()); |
| | | deviceChannel.setCivilCode(deviceGBId.substring(0, 6)); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setParental(0); |
| | |
| | | List<ParentPlatform> parentPlatforms = platformGbStreamMapper.selectByAppAndStream(gs.getApp(), gs.getStream()); |
| | | if (parentPlatforms.size() > 0) { |
| | | for (ParentPlatform parentPlatform : parentPlatforms) { |
| | | eventPublisher.catalogEventPublishForStream(parentPlatform.getServerGBId(), gs, type); |
| | | if (parentPlatform != null) { |
| | | eventPublisher.catalogEventPublishForStream(parentPlatform.getServerGBId(), gs, type); |
| | | } |
| | | } |
| | | } |
| | | } |