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,7 +111,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { | ||
111 | 111 | ||
112 | } else { | 112 | } else { |
113 | uinfo, err := GetUserInfo(strconv.Itoa(rdata.UserId)) | 113 | uinfo, err := GetUserInfo(strconv.Itoa(rdata.UserId)) |
114 | - uinfo.IsNew = 1 | 114 | + |
115 | if err != nil { | 115 | if err != nil { |
116 | logger.Info("GetUserInfo HandlerLogin data failed:%v,for:%v", err, data) | 116 | logger.Info("GetUserInfo HandlerLogin data failed:%v,for:%v", err, data) |
117 | resp.Message = "GetUserInfo failed" | 117 | resp.Message = "GetUserInfo failed" |
@@ -120,7 +120,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { | @@ -120,7 +120,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { | ||
120 | fmt.Fprint(w, string(respstr)) | 120 | fmt.Fprint(w, string(respstr)) |
121 | return | 121 | return |
122 | } | 122 | } |
123 | - | 123 | + uinfo.IsNew = 1 |
124 | resp.Data.Nickname = uinfo.NickName | 124 | resp.Data.Nickname = uinfo.NickName |
125 | resp.Data.UserId = strconv.Itoa(rdata.UserId) | 125 | resp.Data.UserId = strconv.Itoa(rdata.UserId) |
126 | resp.Data.AccessToken = token | 126 | resp.Data.AccessToken = token |
@@ -576,9 +576,9 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | @@ -576,9 +576,9 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | ||
576 | 576 | ||
577 | resp.Data.Level = len(uinfo.BuyCatInfo) | 577 | resp.Data.Level = len(uinfo.BuyCatInfo) |
578 | resp.Data.TotalCashReward = uinfo.TodayZhaocai | 578 | resp.Data.TotalCashReward = uinfo.TodayZhaocai |
579 | - resp.Data.Guide = false | 579 | + resp.Data.Guide = true |
580 | if uinfo.IsNew == 0 { | 580 | if uinfo.IsNew == 0 { |
581 | - resp.Data.Guide = true | 581 | + resp.Data.Guide = false |
582 | } | 582 | } |
583 | resp.Code = 0 | 583 | resp.Code = 0 |
584 | break | 584 | break |