From b66fad136c6243699b316d4f1e231a8d8b4e65ab Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 26 五月 2025 15:09:30 +0800 Subject: [PATCH] 限定主防报警类型 --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectReq.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectReq.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectReq.java index a24b14c..4feeab3 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectReq.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPDisconnectReq.java @@ -26,8 +26,12 @@ * 解析报文 */ public UPDisconnectReq decode(ByteBuf byteBuf) { - this.userId = byteBuf.readInt(); - this.password = Jtt809Util.readGBKString(byteBuf, 12); + try { + this.userId = byteBuf.readInt(); + this.password = Jtt809Util.readGBKString(byteBuf, 12); + }catch (Exception e){ + e.printStackTrace(); + } return this; } } -- Gitblit v1.7.1