[core] fix: announcements cookie (#2512)

This commit is contained in:
cssxsh 2023-02-19 19:50:02 +08:00 committed by GitHub
parent f4667fe1ef
commit bec756e0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,9 @@ internal object AnnouncementProtocol {
})
)
cookie("uin", "o$id")
cookie("p_uin", "o$id")
cookie("skey", sKey)
cookie("p_skey", psKey("qun.qq.com"))
}.bodyAsText().loadSafelyAs(GroupAnnouncementList.serializer())
}
@ -299,6 +301,7 @@ internal object AnnouncementProtocol {
cookie("uin", "o$id")
cookie("p_uin", "o$id")
cookie("skey", sKey)
cookie("p_skey", psKey("qun.qq.com"))
}.bodyAsText().loadAs(GroupAnnouncement.serializer())
}