This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 199
Bug:使用被动WebSocket时,调用频道相关接口没有回复 #223
Labels
bug
Something isn't working
Comments
请求示例{
"action": "get_guild_channel_list",
"params": {
"guild_id": 652778324010301988,
"refresh": true
},
"echo": 111
} 无法复现! |
请提供QQ版本,或者查看错误日志 |
这里正在使用8.9.83版本呀 |
该API是在QQ |
(这个版本,亦支持频道功能呀 emmmm,OpenShamrock,即使在调试模式下,亦没有任何异常抛出呀 而且,这里可以使用 |
可能API不一样? |
fun getGuildList(refresh: Boolean = false, forceOldApi: Boolean): ArrayList<GuildInfo> {
val kernelGProService = NTServiceFetcher.kernelService.wrapperSession.guildService
if (refresh) {
kernelGProService.refreshGuildList(true)
kernelGProService.guildListFromCache.forEach {
refreshGuildInfo(it.guildId.toULong())
}
}
val result = arrayListOf<GuildInfo>()
if (PlatformUtils.getQQVersionCode() < PlatformUtils.QQ_9_0_8_VER || forceOldApi) {
getGuildListByOldApi(result)
} else {
runCatching {
getGuildListByNt(result)
}.onFailure {
LogCenter.log("GetGuildListByNt failed: ${it.stackTraceToString()}", Level.ERROR)
getGuildListByOldApi(result) // 防止QQ更新API导致无法获取
}
}
return result
} 获取频道列表有一个容错代码。 |
那…… |
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
警告: 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭
描述 Bug
使用被动WebSocket时,调用频道相关接口没有回复。
OpenShamrock日志:
Bot后端日志:
复现 Bug
向OpenShamrock通过被动WebSocket,调用诸如
get_guild_channel_list
get_guild_roles
get_guild_member_list
等动作。系统信息
The text was updated successfully, but these errors were encountered: