Pu Zhibing
5 小时以前 b554a106bc1b06e0320b642d16c31554ae558301
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPConnectReq.java
@@ -34,10 +34,14 @@
    * 解析登录报文
    */
   public UPConnectReq decode(ByteBuf byteBuf) {
      this.userId = byteBuf.readInt();
      this.password = Jtt809Util.readGBKString(byteBuf, 8);
      this.downLinkIp = Jtt809Util.readGBKString(byteBuf, 32);
      this.downLinkPort = byteBuf.readShort();
      try {
         this.userId = byteBuf.readInt();
         this.password = Jtt809Util.readGBKString(byteBuf, 8);
         this.downLinkIp = Jtt809Util.readGBKString(byteBuf, 32);
         this.downLinkPort = byteBuf.readUnsignedShort();
      }catch (Exception e){
         e.printStackTrace();
      }
      return this;
   }