Commit b132efe6c2280ff8b09075181afadd3e8a277472
1 parent
7959f63c
Exists in
master
提交
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/HttpServer/logic/logic.go
| ... | ... | @@ -111,7 +111,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { |
| 111 | 111 | |
| 112 | 112 | } else { |
| 113 | 113 | uinfo, err := GetUserInfo(strconv.Itoa(rdata.UserId)) |
| 114 | - uinfo.IsNew = 1 | |
| 114 | + | |
| 115 | 115 | if err != nil { |
| 116 | 116 | logger.Info("GetUserInfo HandlerLogin data failed:%v,for:%v", err, data) |
| 117 | 117 | resp.Message = "GetUserInfo failed" |
| ... | ... | @@ -120,7 +120,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { |
| 120 | 120 | fmt.Fprint(w, string(respstr)) |
| 121 | 121 | return |
| 122 | 122 | } |
| 123 | - | |
| 123 | + uinfo.IsNew = 1 | |
| 124 | 124 | resp.Data.Nickname = uinfo.NickName |
| 125 | 125 | resp.Data.UserId = strconv.Itoa(rdata.UserId) |
| 126 | 126 | resp.Data.AccessToken = token |
| ... | ... | @@ -576,9 +576,9 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { |
| 576 | 576 | |
| 577 | 577 | resp.Data.Level = len(uinfo.BuyCatInfo) |
| 578 | 578 | resp.Data.TotalCashReward = uinfo.TodayZhaocai |
| 579 | - resp.Data.Guide = false | |
| 579 | + resp.Data.Guide = true | |
| 580 | 580 | if uinfo.IsNew == 0 { |
| 581 | - resp.Data.Guide = true | |
| 581 | + resp.Data.Guide = false | |
| 582 | 582 | } |
| 583 | 583 | resp.Code = 0 |
| 584 | 584 | break | ... | ... |