Commit 47e02cd2 authored by Him188's avatar Him188

Fix build

parent 21187a0a
......@@ -222,6 +222,7 @@ internal inline fun BytePacketBuilder.writeSsoPacket(
subAppId: Long,
commandName: String,
extraData: ByteReadPacket = BRP_STUB,
unknownHex: String = "01 00 00 00 00 00 00 00 00 00 01 00",
sequenceId: Int,
body: BytePacketBuilder.() -> Unit
) {
......@@ -229,7 +230,7 @@ internal inline fun BytePacketBuilder.writeSsoPacket(
writeInt(sequenceId)
writeInt(subAppId.toInt())
writeInt(subAppId.toInt())
writeHex("01 00 00 00 00 00 00 00 00 00 01 00")
writeHex(unknownHex)
if (extraData === BRP_STUB) {
writeInt(0x04)
} else {
......
......@@ -280,7 +280,7 @@ internal object LoginPacket : PacketFactory<LoginPacket.LoginPacketResponse>("wt
1, 15 -> onErrorMessage(tlvMap)
2 -> onSolveLoginCaptcha(tlvMap, bot)
-96 -> onUnsafeDeviceLogin(tlvMap)
-52 -> onSMSVerifyNeeded(tlvMap, bot)
-52 /*0xCC=204*/ -> onSMSVerifyNeeded(tlvMap, bot)
else -> error("unknown login result type: $type")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment