puzhibing
2 天以前 4ad32c37e3317fb6cb7cbfb034b53d3220c27db4
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPCloseLinkInform.java
@@ -1,6 +1,6 @@
package com.ruoyi.dataInterchange.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.netty.buffer.ByteBuf;
import lombok.Data;
/**
@@ -15,6 +15,18 @@
    * 0x00:从链路断开
    * 0x01:其他
    */
   @JsonProperty("REASON_CODE")
   private String reasonCode;
   private int reasonCode;
   /**
    * 解析报文
    */
   public UPCloseLinkInform decode(ByteBuf byteBuf) {
      try {
         this.reasonCode = byteBuf.readByte();
      }catch (Exception e){
         e.printStackTrace();
      }
      return this;
   }
}