Commit 8cb063a2ef547b62f04e3f609d943d0a2b977244
1 parent
e0910ce2
Exists in
master
提交
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/function.go
| ... | ... | @@ -205,6 +205,12 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int) { |
| 205 | 205 | |
| 206 | 206 | logger.Info("Init user data=%v", udata) |
| 207 | 207 | |
| 208 | + resp.Data.Nickname = udata.NickName | |
| 209 | + resp.Data.UserId = strconv.Itoa(udata.UserId) | |
| 210 | + resp.Data.AccessToken = "" | |
| 211 | + resp.Data.HeadImg = udata.Head | |
| 212 | + resp.Data.LoginType = data.Lype | |
| 213 | + | |
| 208 | 214 | //保存redis |
| 209 | 215 | SaveUserInfo(udata, strconv.Itoa(uuid)) |
| 210 | 216 | ... | ... |