mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
Less retry for friendlist
This commit is contained in:
parent
54e494f2a5
commit
26c86129c6
@ -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
|
|||||||
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 {
|
|||||||
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"
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user