Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取群活跃数据失败(ActiveRankRecord) #2609

Closed
wly20040415 opened this issue Apr 3, 2023 · 1 comment · Fixed by #2610
Closed

获取群活跃数据失败(ActiveRankRecord) #2609

wly20040415 opened this issue Apr 3, 2023 · 1 comment · Fixed by #2610

Comments

@wly20040415
Copy link

问题描述

方式跟获取群聊数据一致,但是获取群活跃的数据报错,代码如下 | 报错信息如下:
QQ图片20230403231507
QQ图片20230403231511

复现

调用方式与群数据信息一样:
群数据信息代码:
var group_queryChart = group.active.queryChart()
var msg= buildMessageChain {
+group_queryChart.actives.map { "活跃人数:${it.value}" }.toString()
+"\r\n"
+group.active.queryChart().members.map { "总群人数:${it.key}" }.toString()
+"\r\n"
+group.active.queryChart().exit.map { "每日退群人数: ${it.key}" }.toString()
+"\r\n"
+group.active.queryChart().join.map { "每日进群人数:${it.key}" }.toString()
+group.active.queryChart().sentences.map { "每日申请进群人数:${it.key}" }.toString()
}
group.sendMessage(msg)

活跃数据信息代码如下:
var grou_rank : List = group.active.queryActiveRank()
for(result in grou_rank){
val msg = buildMessageChain {
+"=======活跃数据========"
+"\r\n"
+ "{QQ:${result.memberName}:${result.memberId}\r\n活跃度:${result.temperature}\r\n活跃积分:${result.score}}".toString()
+"\r\n"
+"======================"
}
group.sendMessage(msg)
}

都是相同调用方式,活跃数据信息报错

mirai-core 版本

2.15.0-M1

bot-protocol

ANDROID_PHONE

其他组件版本

mirai-api-http v2.6.0

系统日志

No response

网络日志

No response

补充信息

改变调用办法多次无解,求修复或解答 T_T

@cssxsh
Copy link
Contributor

cssxsh commented Apr 3, 2023

可能是数据结构变了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants