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
|
let isSelfUid = false
|
||||||
if (e.runtime) {
|
if (e.runtime && e.runtime?.user) {
|
||||||
let uids = e.runtime?.user?.getCkUidList(e.game) || []
|
let uids = []
|
||||||
isSelfUid = uids.some(ds => ds.uid === uid + '')
|
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
|
let rank = false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user