From 356f00b54b98b991b72c338d843bdaf871cf3996 Mon Sep 17 00:00:00 2001 From: cssxsh Date: Sun, 25 Jun 2023 17:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A6=81=E8=A8=80=E5=8C=BF?= =?UTF-8?q?=E5=90=8D=E6=88=90=E5=91=98=20(#2711)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mirai-core/src/commonMain/kotlin/MiraiImpl.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/MiraiImpl.kt b/mirai-core/src/commonMain/kotlin/MiraiImpl.kt index 317cd05ef..2b1ef2025 100644 --- a/mirai-core/src/commonMain/kotlin/MiraiImpl.kt +++ b/mirai-core/src/commonMain/kotlin/MiraiImpl.kt @@ -59,6 +59,7 @@ import net.mamoe.mirai.internal.network.protocol.packet.chat.voice.PttStore import net.mamoe.mirai.internal.network.protocol.packet.list.FriendList import net.mamoe.mirai.internal.network.protocol.packet.login.StatSvc import net.mamoe.mirai.internal.network.protocol.packet.summarycard.SummaryCard +import net.mamoe.mirai.internal.network.psKey import net.mamoe.mirai.internal.network.sKey import net.mamoe.mirai.internal.utils.MiraiProtocolInternal import net.mamoe.mirai.internal.utils.crypto.TEA @@ -609,7 +610,7 @@ internal open class MiraiImpl : IMirai, LowLevelApiAccessor { // ktor bug append( "cookie", - "uin=o${bot.id}; skey=${bot.sKey};" + "uin=o${bot.id}; skey=${bot.sKey}; p_uin=o${bot.id}; p_skey=${bot.psKey(host)};" ) } }.bodyAsText()