From 3b64aeaee2fcc44d69016611c827d4d0d8336910 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期二, 02 八月 2022 16:42:47 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/netty/domain/fire/Fire_3030.java | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/core/netty/domain/fire/Fire_3030.java b/src/main/java/com/zy/core/netty/domain/fire/Fire_3030.java index 0c9a03e..e7ea5c6 100644 --- a/src/main/java/com/zy/core/netty/domain/fire/Fire_3030.java +++ b/src/main/java/com/zy/core/netty/domain/fire/Fire_3030.java @@ -6,8 +6,6 @@ import io.netty.buffer.ByteBufUtil; import lombok.Data; -import java.nio.charset.StandardCharsets; - /** * 蹇冭烦 pac * 8230303234303030303030313130353138303E303F3131383083 @@ -70,7 +68,7 @@ } public static Integer analyze(byte[] bytes) { - return Integer.parseInt(new String(bytes, StandardCharsets.US_ASCII), 16); + return Integer.parseInt(Integer.toString(bytes[0] & 0x0F, 16) + Integer.toString(bytes[1] & 0x0F, 16), 16); } } -- Gitblit v1.9.1