Commit 66cadafd1c4f6a7c84fec90cf7c073060a0b9d5f
1 parent
89db9991
优化直播推流的CivilCode
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java
| @@ -1021,7 +1021,8 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | @@ -1021,7 +1021,8 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | ||
| 1021 | deviceChannel.setParental(1); | 1021 | deviceChannel.setParental(1); |
| 1022 | deviceChannel.setParentId(catalog.getParentId()); | 1022 | deviceChannel.setParentId(catalog.getParentId()); |
| 1023 | deviceChannel.setRegisterWay(1); | 1023 | deviceChannel.setRegisterWay(1); |
| 1024 | - deviceChannel.setCivilCode(sipConfig.getDomain()); | 1024 | + // 行政区划应该是Domain的前八位 |
| 1025 | + deviceChannel.setCivilCode(sipConfig.getDomain().substring(0, sipConfig.getDomain().length() - 2)); | ||
| 1025 | deviceChannel.setModel("live"); | 1026 | deviceChannel.setModel("live"); |
| 1026 | deviceChannel.setOwner("wvp-pro"); | 1027 | deviceChannel.setOwner("wvp-pro"); |
| 1027 | deviceChannel.setSecrecy("0"); | 1028 | deviceChannel.setSecrecy("0"); |