Commit a012007f36ba1ce44e9c932ea33120949835dfb7
1 parent
26c3ca6a
多级虚拟组织处理修复
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/utils/XmlUtil.java
| ... | ... | @@ -213,7 +213,7 @@ public class XmlUtil { |
| 213 | 213 | deviceChannel.setParentId(XmlUtil.getText(itemDevice, "ParentID")); |
| 214 | 214 | String parentId = XmlUtil.getText(itemDevice, "ParentID"); |
| 215 | 215 | if (parentId.contains("/")) { |
| 216 | - String lastParentId = parentId.substring(parentId.lastIndexOf("/")); | |
| 216 | + String lastParentId = parentId.substring(parentId.lastIndexOf("/") + 1); | |
| 217 | 217 | deviceChannel.setParentId(lastParentId); |
| 218 | 218 | }else { |
| 219 | 219 | deviceChannel.setParentId(parentId); | ... | ... |