mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-29 02:27:26 +00:00
解决QQ频道调用时无法排名的问题 (#631)
QQ频道的group_id格式类似qg_113458249547xxxxxxxx-9719xxx, x为数字,修改正则表达式适配该格式
This commit is contained in:
parent
217400d1bc
commit
0cfcb94706
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user