|
|
@@ -110,7 +110,7 @@ export default () => {
|
|
|
}
|
|
|
|
|
|
function handleUserInfo(userType: rolesType, userInfo: Record<string, any>) {
|
|
|
- let avatar, username, realName, phone, subjectId, isVip
|
|
|
+ let avatar, username, realName, phone, subjectId, isVip, tenantId
|
|
|
if (["GYM", "KLX"].includes(userType)) {
|
|
|
avatar = userInfo.avatar
|
|
|
username = userInfo.username
|
|
|
@@ -118,6 +118,7 @@ function handleUserInfo(userType: rolesType, userInfo: Record<string, any>) {
|
|
|
phone = userInfo.phone
|
|
|
subjectId = userInfo.subjectId
|
|
|
isVip = userInfo.userVip ? false : userInfo.userVip?.vipType === "NOT_VIP" || !userInfo.userVip?.vipType ? true : false
|
|
|
+ tenantId = userInfo.tenantId
|
|
|
} else {
|
|
|
avatar = userInfo.avatar
|
|
|
username = userInfo.nickname
|
|
|
@@ -132,6 +133,7 @@ function handleUserInfo(userType: rolesType, userInfo: Record<string, any>) {
|
|
|
realName,
|
|
|
phone,
|
|
|
subjectId,
|
|
|
- isVip
|
|
|
+ isVip,
|
|
|
+ tenantId
|
|
|
}
|
|
|
}
|