From e3c23b35108357abd17e9d9443032dfca6c81311 Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 11 Sep 2019 22:16:09 +0800 Subject: [PATCH] Updated --- .../main/java/net/mamoe/mirai/network/packet/ClientPacket.kt | 2 +- .../network/packet/image/ClientGetGroupImageIDPacket.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ClientPacket.kt b/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ClientPacket.kt index e1d671231..c94621597 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ClientPacket.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ClientPacket.kt @@ -104,7 +104,7 @@ fun DataOutputStream.writeHex(hex: String) { if (s.isEmpty()) { continue } - this.writeByte(s.toUByte(16).toByte().toInt()) + this.writeByte(s.toUByte(16).toInt()) } } diff --git a/mirai-core/src/main/java/net/mamoe/mirai/network/packet/image/ClientGetGroupImageIDPacket.kt b/mirai-core/src/main/java/net/mamoe/mirai/network/packet/image/ClientGetGroupImageIDPacket.kt index f3e09c45d..9834ce63c 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/network/packet/image/ClientGetGroupImageIDPacket.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/network/packet/image/ClientGetGroupImageIDPacket.kt @@ -70,8 +70,9 @@ class ClientGetGroupImageIDPacket( it.writeHex("60 04") - it.writeHex("6A 05") - it.writeHex("32 36 36 35 36 05") + it.writeHex("6A") + it.writeHex("05") + it.writeHex("32 36 36 35 36 05")//6? it.writeHex("70 00")