Pu Zhibing
2025-03-11 f56262ee1cb3c554878984e3536ab55a298bdedf
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNDisconnectInform.java
@@ -1,6 +1,5 @@
package com.ruoyi.dataInterchange.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.buffer.Unpooled;
@@ -8,6 +7,7 @@
/**
 * 从链路断开通知
 *
 * @author zhibing.pu
 * @Date 2025/2/24 11:12
 */
@@ -24,7 +24,7 @@
   
   public byte[] encode() {
      ByteBuf byteBuf = Unpooled.buffer(1);
      byteBuf.writeInt(this.getErrorCode());
      byteBuf.writeByte(this.getErrorCode());
      byte[] bytes = ByteBufUtil.getBytes(byteBuf);
      byteBuf.release();
      return bytes;