mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-30 05:57:50 +08:00
Compare commits
1 Commits
a6446c5f0f
...
e86d926101
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e86d926101 |
@ -1148,15 +1148,6 @@ 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