From a0745d664d309e5ea6494057302f1173bcc2db6c Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 12 Jan 2020 16:54:23 +0800 Subject: [PATCH] Fix #30 --- .../network/packet/action/GroupPacket.kt | 76 ++++++++++++++++++- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/network/packet/action/GroupPacket.kt b/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/network/packet/action/GroupPacket.kt index e35c7d94a..feaf6a2b6 100644 --- a/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/network/packet/action/GroupPacket.kt +++ b/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/network/packet/action/GroupPacket.kt @@ -155,9 +155,13 @@ internal object GroupPacket : SessionPacketFactory { // 允许任何人 + } + + 7 -> { // 需要回答问题? + discardExact(3) // 00 01 00, 需要提交给管理员审核 + readUByteLVString() // 验证问题 + } + + else -> { + DebugLogger.error("Cannot parse GroupPacket.QueryGroupInfo. unknown verifyType=$verifyType. Still trying to parse...") + discardExact(3) + readUByteLVString() // 验证问题 + } + } + discardExact(43) val stop = readUInt().toLong() // 标记读取群成员的结束 discardExact(1) // 00