From a05b419384e148fc950c77553816a2d05144f4ae Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期四, 19 六月 2025 19:36:22 +0800 Subject: [PATCH] 修改生产环境配置 --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectInform.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectInform.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectInform.java index becc012..26db8a5 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectInform.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectInform.java @@ -1,10 +1,10 @@ package com.ruoyi.dataInterchange.model; -import com.fasterxml.jackson.annotation.JsonProperty; +import io.netty.buffer.ByteBuf; import lombok.Data; /** - * 住链路断开通知 + * 主链路断开通知 * @author zhibing.pu * @Date 2025/2/24 10:59 */ @@ -15,6 +15,17 @@ * 0x00:主链路断开 * 0x01:其他 */ - @JsonProperty("ERROR_CODE") - private String errorCode; + private int errorCode; + + /** + * 解析报文 + */ + public UPDisconnectInform decode(ByteBuf byteBuf) { + try { + this.errorCode = byteBuf.readByte(); + }catch (Exception e){ + e.printStackTrace(); + } + return this; + } } -- Gitblit v1.7.1