From 0cfcb94706bd4993fa2921839548df237fef71c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=A4=B4?= Date: Sat, 2 Sep 2023 02:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3QQ=E9=A2=91=E9=81=93=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E6=97=B6=E6=97=A0=E6=B3=95=E6=8E=92=E5=90=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#631)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QQ频道的group_id格式类似qg_113458249547xxxxxxxx-9719xxx, x为数字,修改正则表达式适配该格式 --- models/ProfileRank.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/ProfileRank.js b/models/ProfileRank.js index 6a49d9b7..01ba648d 100644 --- a/models/ProfileRank.js +++ b/models/ProfileRank.js @@ -35,7 +35,7 @@ export default class ProfileRank { let keys = await redis.keys(`miao:rank:${groupId}:${type}:*`) let ret = [] for (let key of keys) { - let keyRet = /^miao:rank:\d+:(?:mark|dmg|crit|valid):(\d{8})$/.exec(key) + let keyRet = /^miao:rank:[\w-]+:(?:mark|dmg|crit|valid):(\d{8})$/.exec(key) if (keyRet && keyRet[1]) { let charId = keyRet[1] let uid = await ProfileRank.getGroupMaxUid(groupId, charId, type)