From 159660108d6159e8b89db60239847a11f4d050ca Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Wed, 9 Nov 2022 10:44:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E6=97=B6=E8=A7=A6=E5=8F=91=E5=AF=B9=E6=96=B0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=A7=92=E8=89=B2=E6=95=B0=E6=8D=AE=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=BC=BA=E5=88=B6=E6=8E=92=E5=90=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/character/ProfileList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/character/ProfileList.js b/apps/character/ProfileList.js index d03b41cd..6ce09e0c 100644 --- a/apps/character/ProfileList.js +++ b/apps/character/ProfileList.js @@ -36,13 +36,13 @@ export async function profileList (e) { tmp.level = profile.level || 1 tmp.cons = profile.cons tmp.isNew = 0 - if (rank) { - tmp.groupRank = await rank.getRank(profile) - } if (newChar[char.name]) { tmp.isNew = 1 newCount++ } + if (rank) { + tmp.groupRank = await rank.getRank(profile, !!tmp.isNew) + } chars.push(tmp) })