mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
调整V2下MysUser的兼容处理
This commit is contained in:
parent
35e7c17b85
commit
0af7d1cbd8
@ -55,7 +55,11 @@ if (!MysInfo) {
|
||||
let user = await e.checkAuth({
|
||||
auth: 'all'
|
||||
})
|
||||
return user ? user.uid : false
|
||||
if (!user || !user.getMysUser) {
|
||||
return false
|
||||
}
|
||||
let mysUser = await user.getMysUser()
|
||||
return mysUser ? mysUser.uid : false
|
||||
}
|
||||
|
||||
static async get (e, api, data) {
|
||||
|
Loading…
Reference in New Issue
Block a user