From 4109495b9c51a4bbd8b0a7c3c69093909d2e33e1 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 07 四月 2025 18:55:05 +0800 Subject: [PATCH] 修改接口bug --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNConnectRsp.java | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNConnectRsp.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNConnectRsp.java index 459ced9..627bdfc 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNConnectRsp.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNConnectRsp.java @@ -1,6 +1,7 @@ package com.ruoyi.dataInterchange.model; import com.fasterxml.jackson.annotation.JsonProperty; +import io.netty.buffer.ByteBuf; import lombok.Data; /** @@ -17,6 +18,15 @@ * 0x02:资源紧张,稍后再连接(已经占用) * 0xFF:其他 */ - @JsonProperty("VERIFY_CODE") - private String verifyCode; + private int verifyCode; + + + + /** + * 解析报文 + */ + public DOWNConnectRsp decode(ByteBuf byteBuf) { + this.verifyCode = byteBuf.readByte(); + return this; + } } -- Gitblit v1.7.1