Parcourir la source

[功能修复]修复直流判断

liuf il y a 10 mois
Parent
commit
c9efc44207

+ 1 - 1
src/main/java/com/tmzn/devicelinkykc/message/DeviceMsgHandle.java

@@ -360,7 +360,7 @@ public class DeviceMsgHandle {
             return;
         }
 
-        if (!NormalChargeConstant.KEY_PORT_DETAIL_EXTEND.equals(cmd)) {
+        if (NormalChargeConstant.KEY_PORT_DETAIL_EXTEND.equals(type)) {
             //163 解析
             handle163(jsonObject,imei,pileCode);
             return;

+ 1 - 1
src/main/java/com/tmzn/devicelinkykc/socket/DeviceConnectionMsg.java

@@ -37,7 +37,7 @@ public class DeviceConnectionMsg {
         this.deviceSn=deviceSn;
         this.ver = ver;
         this.is18 = true;
-        this.isDc = isDc == 1;
+        this.isDc = isDc == 0;
         if(!ver.startsWith("1.8")){
             this.is18=false;
         }