Commit 77d9da25c4cbd8fe9cf609b5795f704fb7927818
1 parent
9cd63f01
修复civilCode判断错误导致civilCode丢失
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/utils/XmlUtil.java
| @@ -344,7 +344,7 @@ public class XmlUtil { | @@ -344,7 +344,7 @@ public class XmlUtil { | ||
| 344 | if (!ObjectUtils.isEmpty(civilCode) | 344 | if (!ObjectUtils.isEmpty(civilCode) |
| 345 | && civilCode.length() <= 8 | 345 | && civilCode.length() <= 8 |
| 346 | && NumberUtils.isParsable(civilCode) | 346 | && NumberUtils.isParsable(civilCode) |
| 347 | - && Integer.parseInt(civilCode)%2 == 0 | 347 | + && civilCode.length()%2 == 0 |
| 348 | ) { | 348 | ) { |
| 349 | deviceChannel.setCivilCode(civilCode); | 349 | deviceChannel.setCivilCode(civilCode); |
| 350 | } | 350 | } |