修复civilCode判断错误导致civilCode丢失
This commit is contained in:
parent
a0a4fdb032
commit
f8908474b3
@ -344,7 +344,7 @@ public class XmlUtil {
|
||||
if (!ObjectUtils.isEmpty(civilCode)
|
||||
&& civilCode.length() <= 8
|
||||
&& NumberUtils.isParsable(civilCode)
|
||||
&& Integer.parseInt(civilCode)%2 == 0
|
||||
&& civilCode.length()%2 == 0
|
||||
) {
|
||||
deviceChannel.setCivilCode(civilCode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user