Commit 79ea6ac6a729cd644cc5cf1b94a6e01eb41de3cc

Authored by 陆恒
1 parent b132efe6
Exists in master

提交

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
src/HttpServer/logic/logic.go
... ... @@ -127,7 +127,12 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) {
127 127 resp.Data.HeadImg = uinfo.Head
128 128 resp.Data.LoginType = rdata.Lype
129 129 uinfo.LastLoginTime = int(time.Now().Unix())
130   - SaveUserInfo(uinfo, strconv.Itoa(uuid))
  130 +
  131 + err = SaveUserInfo(uinfo, strconv.Itoa(uuid))
  132 + if err != nil {
  133 + logger.Error("SaveUserInfo failed err=%v")
  134 + }
  135 + logger.Info("HandlerLogin uinfo=%+v", uinfo)
131 136 }
132 137  
133 138 //回包
... ...