diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt index a51fff259..3493a4a73 100644 --- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt +++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt @@ -238,11 +238,17 @@ internal class WtLogin { // 1, 15 -> onErrorMessage(tlvMap) ?: error("Cannot find error message") else -> { onErrorMessage(type.toInt(), tlvMap, bot) - ?: error("Cannot find error message, unknown login result type: $type, TLVMap = ${tlvMap.structureToString()}") + ?: error( + "Cannot find error message, unknown login result type: $type, TLVMap = ${dumpTlvMap(tlvMap)}" + ) } } } + private fun dumpTlvMap(tlvMap: TlvMap) { + tlvMap.entries.joinToString { "${it.key}=${it.value.toUHexString()}" } + } + private fun onDevLockLogin( tlvMap: TlvMap, bot: QQAndroidBot