20260227-1
This commit is contained in:
@@ -491,13 +491,14 @@ export default {
|
||||
uAvatar = profile.getString('avatar_url') ?? ''
|
||||
uGender = profile.getNumber('gender') ?? 0
|
||||
} else {
|
||||
const profileObj = profile as UTSJSONObject
|
||||
uId = (profileObj.getString('user_id') ?? '') as string
|
||||
uPhone = (profileObj.getString('phone') ?? '') as string
|
||||
uEmail = (profileObj.getString('email') ?? '') as string
|
||||
uNickname = (profileObj.getString('nickname') ?? '') as string
|
||||
uAvatar = (profileObj.getString('avatar_url') ?? '') as string
|
||||
uGender = (profileObj.getNumber('gender') ?? 0) as number
|
||||
// 必须使用 JSON.parse(JSON.stringify()) 转换为 UTSJSONObject
|
||||
const profileObj = JSON.parse(JSON.stringify(profile)) as UTSJSONObject
|
||||
uId = profileObj.getString('user_id') ?? ''
|
||||
uPhone = profileObj.getString('phone') ?? ''
|
||||
uEmail = profileObj.getString('email') ?? ''
|
||||
uNickname = profileObj.getString('nickname') ?? ''
|
||||
uAvatar = profileObj.getString('avatar_url') ?? ''
|
||||
uGender = profileObj.getNumber('gender') ?? 0
|
||||
}
|
||||
|
||||
if (uNickname === '' && uPhone !== '') {
|
||||
|
||||
Reference in New Issue
Block a user