diff --git a/CHANGELOG.md b/CHANGELOG.md index 011c15c0..1c9d04fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * 喵喵设置中增加排名限制门槛,支持限制 有16个角色数据/包含御三家角色 才能参与排名,防止被非群成员uid刷榜 * `#雷神面板`圣遗物支持展示强化次数 +* 增加命令`#刷新排名`,获取群成员面板数据,刷新当前排名 **@munnks** # 2.0.1~2.0.8 diff --git a/apps/character/ProfileRank.js b/apps/character/ProfileRank.js index 5a1c3c54..05807916 100644 --- a/apps/character/ProfileRank.js +++ b/apps/character/ProfileRank.js @@ -120,7 +120,9 @@ export async function refreshRank (e) { } await rank.getRank(profile, true) } - count++ + if (rank.allowRank) { + count++ + } } } e.reply(`本群排名已刷新,共刷新${count}个UID数据...`) diff --git a/components/Common.js b/components/Common.js index 6a879ea9..f3c780cb 100644 --- a/components/Common.js +++ b/components/Common.js @@ -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 } }