From 1d34b24acd03a6ef5b2b9b153a3006e4595c14ec Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Wed, 16 Nov 2022 04:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3`#=E5=88=B7=E6=96=B0=E6=8E=92?= =?UTF-8?q?=E5=90=8D`=E6=8F=90=E7=A4=BA=E7=9A=84uid=E8=AE=A1=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + apps/character/ProfileRank.js | 4 +++- components/Common.js | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) 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 } }