|  |  | 
 |  |  |         deviceChannel.setStatus(gbStream.isStatus()?1:0); | 
 |  |  |         deviceChannel.setParentId(catalogId ==null?gbStream.getCatalogId():catalogId); | 
 |  |  |         deviceChannel.setRegisterWay(1); | 
 |  |  |         deviceChannel.setCivilCode(sipConfig.getDomain()); | 
 |  |  |         deviceChannel.setCivilCode(sipConfig.getDomain().substring(0, sipConfig.getDomain().length() - 2)); | 
 |  |  |         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); | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             } |