Commit d3557c92 authored by Him188's avatar Him188

Merge remote-tracking branch 'origin/master'

parents c378dcb0 6fff5b27
...@@ -98,9 +98,9 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler ...@@ -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 { ...@@ -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()
) )
......
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