Pu Zhibing
2025-04-25 944999ebf82cd4cce295981924ad808f0fbcbedf
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPAuthorizeMsgStartup.java
@@ -43,10 +43,14 @@
    * 解析登录报文
    */
   public UPAuthorizeMsgStartup decode(ByteBuf byteBuf) {
      this.dataType = byteBuf.readShort();
      this.plateformId = Jtt809Util.readGBKString(byteBuf, 11);
      this.authorizeCode1 = Jtt809Util.readGBKString(byteBuf, 64);
      this.authorizeCode2 = Jtt809Util.readGBKString(byteBuf, 64);
      try {
         this.dataType = byteBuf.readShort();
         this.plateformId = Jtt809Util.readGBKString(byteBuf, 11);
         this.authorizeCode1 = Jtt809Util.readGBKString(byteBuf, 64);
         this.authorizeCode2 = Jtt809Util.readGBKString(byteBuf, 64);
      }catch (Exception e){
         e.printStackTrace();
      }
      return this;
   }
}