mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
parent
cd1907f377
commit
c44b308f87
@ -56,9 +56,15 @@ const ProfileList = {
|
||||
}
|
||||
|
||||
let isSelfUid = false
|
||||
if (e.runtime) {
|
||||
let uids = e.runtime?.user?.getCkUidList(e.game) || []
|
||||
isSelfUid = uids.some(ds => ds.uid === uid + '')
|
||||
if (e.runtime && e.runtime?.user) {
|
||||
let uids = []
|
||||
let user = e.runtime.user
|
||||
if (typeof user.getCkUidList === 'function') {
|
||||
uids = user.getCkUidList(e.game).map(i => i.uid) || []
|
||||
} else {
|
||||
uids = user.ckUids || []
|
||||
}
|
||||
isSelfUid = uids.some(ds => ds === uid + '')
|
||||
}
|
||||
let rank = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user