修正#刷新排名提示的uid计数不正确的问题

This commit is contained in:
Kokomi 2022-11-16 04:25:07 +08:00
parent 341fe15972
commit 1d34b24acd
3 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,7 @@
* 喵喵设置中增加排名限制门槛,支持限制 有16个角色数据/包含御三家角色 才能参与排名防止被非群成员uid刷榜
* `#雷神面板`圣遗物支持展示强化次数
* 增加命令`#刷新排名`,获取群成员面板数据,刷新当前排名 **@munnks**
# 2.0.1~2.0.8

View File

@ -120,9 +120,11 @@ export async function refreshRank (e) {
}
await rank.getRank(profile, true)
}
if (rank.allowRank) {
count++
}
}
}
e.reply(`本群排名已刷新,共刷新${count}个UID数据...`)
}

View File

@ -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
}
}