Commit 26c86129 authored by Him188's avatar Him188

Less retry for friendlist

parent 54e494f2
...@@ -126,10 +126,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler ...@@ -126,10 +126,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
20, 20,
0, 0,
0 0
).sendAndExpect<FriendList.GetFriendGroupList.Response>( ).sendAndExpect<FriendList.GetFriendGroupList.Response>()
timeoutMillis = 8000,
retry = 5
)
totalFriendCount = data.totalFriendCount totalFriendCount = data.totalFriendCount
data.friendList.forEach { data.friendList.forEach {
...@@ -153,7 +150,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler ...@@ -153,7 +150,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
bot.logger.info("开始加载组信息") bot.logger.info("开始加载组信息")
val troopData = FriendList.GetTroopListSimplify( val troopData = FriendList.GetTroopListSimplify(
bot.client bot.client
).sendAndExpect<FriendList.GetTroopListSimplify.Response>(10000) ).sendAndExpect<FriendList.GetTroopListSimplify.Response>()
println(troopData.contentToString()) println(troopData.contentToString())
} catch (e: Exception) { } catch (e: Exception) {
bot.logger.info("加载组信息失败|一般这是由于加载过于频繁导致/将以热加载方式加载群列表") bot.logger.info("加载组信息失败|一般这是由于加载过于频繁导致/将以热加载方式加载群列表")
......
...@@ -27,7 +27,7 @@ internal class ConfigPushSvc { ...@@ -27,7 +27,7 @@ internal class ConfigPushSvc {
network.run { network.run {
buildOutgoingUniPacket( buildOutgoingUniPacket(
client, client,
sequenceId = client.configPushSvcPushReqSequenceId.also { println("configPushSvcPushReqSequenceId=${client.configPushSvcPushReqSequenceId}") }, sequenceId = client.configPushSvcPushReqSequenceId,
commandName = "ConfigPushSvc.PushResp", commandName = "ConfigPushSvc.PushResp",
name = "ConfigPushSvc.PushResp" name = "ConfigPushSvc.PushResp"
) { ) {
......
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