Commit ff7df593d7ea044bf40a33f5e560f7807e47b39a

Authored by 陆恒
1 parent 543de2ec
Exists in ver2.3.6

提交

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/HttpServer/logic/logic.go
... ... @@ -1204,7 +1204,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) {
1204 1204 resp.Code = ERROR_SRV_ERROR
1205 1205 break*/
1206 1206 logger.Error("mysql failed err=%v", err)
1207   - err = GetUserData(uuid, uniqueuuid, &rdata, &resp)
  1207 + err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid)
1208 1208 }
1209 1209  
1210 1210 if isfind {
... ... @@ -1213,6 +1213,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) {
1213 1213 err = redishandler.GetRedisClient().HSet(redis.USER_DATA_KEY, uniqueuuid,info)
1214 1214 err = redishandler.GetRedisClient().HSet(redis.USER_TASKINFO_LIST, uniqueuuid,task)
1215 1215 err = redishandler.GetRedisClient().HSet(redis.USER_ACHIEVEMENTINFO_LIST, uniqueuuid,ach)
  1216 + err = GetUserData(uuid, uniqueuuid, &rdata, &resp)
1216 1217 }else {
1217 1218 //不存在老的数据 之间走新号流程
1218 1219 err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid)
... ...