Commit c796da7f5d6a646d76e4213dc8d4cf45bd253dd8
1 parent
0b01fb3c
Exists in
ver2.3.0
and in
1 other branch
提交
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -1126,6 +1126,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { | @@ -1126,6 +1126,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { | ||
1126 | //需要判断是否存在老的版本的数据 | 1126 | //需要判断是否存在老的版本的数据 |
1127 | isexist, err = redishandler.GetRedisClient().HExists(redis.USER_DATA_KEY, strconv.Itoa(uuid)) | 1127 | isexist, err = redishandler.GetRedisClient().HExists(redis.USER_DATA_KEY, strconv.Itoa(uuid)) |
1128 | if err == nil && isexist { | 1128 | if err == nil && isexist { |
1129 | + logger.Info("HandlerLogin111111111111") | ||
1129 | //如果存在老的数据 做数据迁移 | 1130 | //如果存在老的数据 做数据迁移 |
1130 | oldstr, err := redishandler.GetRedisClient().HGet(redis.USER_DATA_KEY, strconv.Itoa(uuid)) | 1131 | oldstr, err := redishandler.GetRedisClient().HGet(redis.USER_DATA_KEY, strconv.Itoa(uuid)) |
1131 | if err != nil { | 1132 | if err != nil { |
@@ -1149,6 +1150,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { | @@ -1149,6 +1150,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { | ||
1149 | logger.Info("HandlerLogin uuid=%v do set", uuid) | 1150 | logger.Info("HandlerLogin uuid=%v do set", uuid) |
1150 | } | 1151 | } |
1151 | } else { | 1152 | } else { |
1153 | + logger.Info("HandlerLogin22222222222222222") | ||
1152 | //不存在老的数据 之间走新号流程 | 1154 | //不存在老的数据 之间走新号流程 |
1153 | err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid) | 1155 | err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid) |
1154 | } | 1156 | } |