!58 【轻量级 PR】: 星铁刷新排行 && 星铁更新面板正确查找uidList

Merge pull request !58 from dujiu/master
This commit is contained in:
Kokomi 2023-12-05 20:07:19 +00:00 committed by Gitee
commit 05f9ba7eb2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ app.reg({
refreshRank: {
name: '重置排名',
fn: refreshRank,
rule: /^#(刷新|更新|重新加载)(群内|群|全部)*(排名|排行)$/
rule: /^#(星铁|原神)?(刷新|更新|重新加载)(群内|群|全部)*(排名|排行)$/
},
manageRank: {

View File

@ -57,8 +57,8 @@ const ProfileList = {
let isSelfUid = false
if (e.runtime) {
let uids = e.runtime?.user?.ckUids || []
isSelfUid = uids.join(',').split(',').includes(uid + '')
let uids = e.runtime?.user?.getCkUidList(e.game) || []
isSelfUid = uids.some(ds => ds.uid === uid + '')
}
let rank = false