From 315d847f065dcdead3b6d5911979024a77d6ec98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E5=B0=8F=E4=B8=83?= <59356882+stinaCN@users.noreply.github.com> Date: Sun, 12 Oct 2025 20:36:31 +0800 Subject: [PATCH] Update helper.ts (#1311) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复256级以后等级清零的问题。 --- src/common/helper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/helper.ts b/src/common/helper.ts index e97de9b2..0213be69 100644 --- a/src/common/helper.ts +++ b/src/common/helper.ts @@ -163,8 +163,8 @@ export function getQQVersionConfigPath(exePath: string = ''): string | undefined export function calcQQLevel(level?: QQLevel) { if (!level) return 0; - const { crownNum, sunNum, moonNum, starNum } = level; - return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum; + const { penguinNum, crownNum, sunNum, moonNum, starNum } = level; + return penguinNum * 256 + crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum; } export function stringifyWithBigInt(obj: any) { @@ -204,4 +204,4 @@ export function parseAppidFromMajor(nodeMajor: string): string | undefined { } return undefined; -} \ No newline at end of file +}