mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
修正#刷新排名
提示的uid计数不正确的问题
This commit is contained in:
parent
341fe15972
commit
1d34b24acd
@ -2,6 +2,7 @@
|
||||
|
||||
* 喵喵设置中增加排名限制门槛,支持限制 有16个角色数据/包含御三家角色 才能参与排名,防止被非群成员uid刷榜
|
||||
* `#雷神面板`圣遗物支持展示强化次数
|
||||
* 增加命令`#刷新排名`,获取群成员面板数据,刷新当前排名 **@munnks**
|
||||
|
||||
# 2.0.1~2.0.8
|
||||
|
||||
|
@ -120,9 +120,11 @@ export async function refreshRank (e) {
|
||||
}
|
||||
await rank.getRank(profile, true)
|
||||
}
|
||||
if (rank.allowRank) {
|
||||
count++
|
||||
}
|
||||
}
|
||||
}
|
||||
e.reply(`本群排名已刷新,共刷新${count}个UID数据...`)
|
||||
}
|
||||
|
||||
|
@ -76,10 +76,10 @@ const Common = {
|
||||
}
|
||||
let uid = await Common.getBindUid(qq)
|
||||
if (uid && !uidMap[uid]) {
|
||||
ret[qq] = {
|
||||
ret[qq] = [{
|
||||
uid,
|
||||
type: 'bind'
|
||||
}
|
||||
}]
|
||||
uidMap[uid] = qq
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user