mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-29 21:47:50 +08:00
Compare commits
3 Commits
7ee9c6cf09
...
f8f2d158e2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8f2d158e2 | ||
|
|
2b4b127e4a | ||
|
|
8dd624ccd4 |
@ -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