|
@ -31,22 +31,24 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err |
|
|
|
|
|
|
|
|
if res.GetUserId() != "" { |
|
|
if res.GetUserId() != "" { |
|
|
return map[string]string{ |
|
|
return map[string]string{ |
|
|
"UserId": res.GetUserId(), |
|
|
|
|
|
"Username": res.GetUsername(), |
|
|
|
|
|
"Nickname": res.GetNickname(), |
|
|
|
|
|
"Mobile": res.GetMobile(), |
|
|
|
|
|
"Email": res.GetEmail(), |
|
|
|
|
|
"Status": res.GetStatus(), |
|
|
|
|
|
"BusinessId": res.GetBusinessId(), |
|
|
|
|
|
"StoreId": res.GetStoreId(), |
|
|
|
|
|
"FansTo": res.GetFansTo(), |
|
|
|
|
|
"IsVip": res.GetIsVip(), |
|
|
|
|
|
"Usercode": res.GetUsercode(), |
|
|
|
|
|
"GroupId": res.GetGroupId(), |
|
|
|
|
|
"Type": res.GetType(), |
|
|
|
|
|
"ThirdId": res.GetThirdId(), |
|
|
|
|
|
"Platform": res.GetPlatform(), |
|
|
|
|
|
"LockFans": res.GetLockFans(), |
|
|
|
|
|
|
|
|
"UserId": res.GetUserId(), |
|
|
|
|
|
"Username": res.GetUsername(), |
|
|
|
|
|
"Nickname": res.GetNickname(), |
|
|
|
|
|
"Mobile": res.GetMobile(), |
|
|
|
|
|
"Email": res.GetEmail(), |
|
|
|
|
|
"Status": res.GetStatus(), |
|
|
|
|
|
"BusinessId": res.GetBusinessId(), |
|
|
|
|
|
"StoreId": res.GetStoreId(), |
|
|
|
|
|
"FansTo": res.GetFansTo(), |
|
|
|
|
|
"IsVip": res.GetIsVip(), |
|
|
|
|
|
"Usercode": res.GetUsercode(), |
|
|
|
|
|
"GroupId": res.GetGroupId(), |
|
|
|
|
|
"Type": res.GetType(), |
|
|
|
|
|
"ThirdId": res.GetThirdId(), |
|
|
|
|
|
"Platform": res.GetPlatform(), |
|
|
|
|
|
"LockFans": res.GetLockFans(), |
|
|
|
|
|
"CompanyId": res.GetCompanyId(), |
|
|
|
|
|
"DepartmentId": res.GetDepartmentId(), |
|
|
}, nil |
|
|
}, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -194,7 +196,6 @@ func GetById(site_id, dbname, user_id string, url ...string) (map[string]string, |
|
|
return HandleUserRes(res) |
|
|
return HandleUserRes(res) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 更新用户缓存 |
|
|
* 更新用户缓存 |
|
|
* 2021/11/23 |
|
|
* 2021/11/23 |
|
|