Commit 31a665c79fac06665ff79046a53acdddb5a8f22e
Merge branch 'master_dev' into 'master'
fix: 从info中获取PTZType失败 See merge request yunteng/thingskit!413
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -533,7 +533,7 @@ public class TKXmlUtil { |
533 | 533 | String ptzTypeFromInfo = TKXmlUtil.getText(info, "PTZType"); |
534 | 534 | if (!ObjectUtils.isEmpty(ptzTypeFromInfo)) { |
535 | 535 | try { |
536 | - deviceChannel.setPTZType(Integer.parseInt(ptzType)); | |
536 | + deviceChannel.setPTZType(Integer.parseInt(ptzTypeFromInfo)); | |
537 | 537 | } catch (NumberFormatException e) { |
538 | 538 | log.warn("[xml解析] 从通道数据info中获取PTZType失败: {}", ptzTypeFromInfo); |
539 | 539 | } | ... | ... |