mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-29 21:47:50 +08:00
Compare commits
2 Commits
486e83ae4f
...
a40deb7be8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a40deb7be8 | ||
|
|
2b4b127e4a |
@ -1148,6 +1148,15 @@ public class SIPCommander implements ISIPCommander {
|
|||||||
if (code == ErrorCode.SUCCESS.getCode() && data instanceof Element) {
|
if (code == ErrorCode.SUCCESS.getCode() && data instanceof Element) {
|
||||||
Element responseElement = (Element) data;
|
Element responseElement = (Element) data;
|
||||||
Element configElement = responseElement.element(configType);
|
Element configElement = responseElement.element(configType);
|
||||||
|
if (configElement == null) {
|
||||||
|
// 兼容部分宇视设备ElementName和configType不一致的情况
|
||||||
|
for (Element child : responseElement.elements()) {
|
||||||
|
if (child.element("Item") != null) {
|
||||||
|
configElement = child;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (configElement != null) {
|
if (configElement != null) {
|
||||||
try {
|
try {
|
||||||
T result = configClass.getDeclaredConstructor().newInstance();
|
T result = configClass.getDeclaredConstructor().newInstance();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user