From 6f6c6a480d02b7c91e72821e29a937d5927e38cc Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期三, 19 六月 2024 17:48:21 +0800 Subject: [PATCH] 2024-06-19 朱宝民 迁移4个微信小程序接口 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/global/GlCreate.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/global/GlCreate.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/global/GlCreate.java index 2567d99..7b0e72a 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/global/GlCreate.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/global/GlCreate.java @@ -16,7 +16,12 @@ index += 3 ; Integer rtuAddr2Int = Integer.parseInt(rtuAddr2) ; - ByteUtilUnsigned.short2Bytes_BE(bs, rtuAddr2Int.shortValue(), index); + ByteUtilUnsigned.short2Bytes_LE(bs, rtuAddr2Int.shortValue(), index); + } + + public static void createPw(byte[] bs, int index) throws Exception { + bs[index] = 0; + bs[index + 1] = 0; } public static void createTp(byte[] bs, int index) throws Exception { -- Gitblit v1.8.0