mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
!58 【轻量级 PR】: 星铁刷新排行 && 星铁更新面板正确查找uidList
Merge pull request !58 from dujiu/master
This commit is contained in:
commit
05f9ba7eb2
@ -48,7 +48,7 @@ app.reg({
|
||||
refreshRank: {
|
||||
name: '重置排名',
|
||||
fn: refreshRank,
|
||||
rule: /^#(刷新|更新|重新加载)(群内|群|全部)*(排名|排行)$/
|
||||
rule: /^#(星铁|原神)?(刷新|更新|重新加载)(群内|群|全部)*(排名|排行)$/
|
||||
},
|
||||
|
||||
manageRank: {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user