调整V2下MysUser的兼容处理

This commit is contained in:
yoimiya-kokomi 2022-09-27 12:21:46 +08:00
parent 35e7c17b85
commit 0af7d1cbd8

View File

@ -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) {