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; } }