mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d3557c92a7
@ -98,9 +98,9 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
|
|||||||
val data = FriendList.GetFriendGroupList(
|
val data = FriendList.GetFriendGroupList(
|
||||||
bot.client,
|
bot.client,
|
||||||
0,
|
0,
|
||||||
20,
|
10,
|
||||||
0,
|
0,
|
||||||
10
|
0
|
||||||
).sendAndExpect<FriendList.GetFriendGroupList.Response>()
|
).sendAndExpect<FriendList.GetFriendGroupList.Response>()
|
||||||
println(data.contentToString())
|
println(data.contentToString())
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,9 @@ internal class FriendList {
|
|||||||
override suspend fun ByteReadPacket.decode(bot: QQAndroidBot): Response {
|
override suspend fun ByteReadPacket.decode(bot: QQAndroidBot): Response {
|
||||||
|
|
||||||
println(this
|
println(this
|
||||||
.apply { discardExact(4) }
|
.apply {
|
||||||
|
this.discardExact(4)
|
||||||
|
}
|
||||||
.decodeUniPacket(GetFriendListResp.serializer())
|
.decodeUniPacket(GetFriendListResp.serializer())
|
||||||
.contentToString()
|
.contentToString()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user