Commit ca50594422ef9becc9d8c022dbd34591caaa06e7

Authored by 陆恒
1 parent a8d7c924
Exists in ver2.3.0

提交

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
src/HttpServer/logic/logic.go
@@ -1188,7 +1188,8 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { @@ -1188,7 +1188,8 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) {
1188 //不存在 1188 //不存在
1189 //属于新登录的玩家数据 1189 //属于新登录的玩家数据
1190 //需要判断是否存在老的版本的数据 1190 //需要判断是否存在老的版本的数据
1191 - isexist, err = redishandler.GetRedisClient().HExists(redis.USER_DATA_KEY, strconv.Itoa(uuid)) 1191 + err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid)
  1192 + /*isexist, err = redishandler.GetRedisClient().HExists(redis.USER_DATA_KEY, strconv.Itoa(uuid))
1192 if err == nil && isexist { 1193 if err == nil && isexist {
1193 logger.Info("HandlerLogin111111111111") 1194 logger.Info("HandlerLogin111111111111")
1194 //如果存在老的数据 做数据迁移 1195 //如果存在老的数据 做数据迁移
@@ -1217,7 +1218,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) { @@ -1217,7 +1218,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int) {
1217 logger.Info("HandlerLogin22222222222222222") 1218 logger.Info("HandlerLogin22222222222222222")
1218 //不存在老的数据 之间走新号流程 1219 //不存在老的数据 之间走新号流程
1219 err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid) 1220 err = InitUserInfo(&rdata, &resp, uuid, uniqueuuid)
1220 - } 1221 + }*/
1221 1222
1222 } else { 1223 } else {
1223 //已经迁移过的数据之间返回 1224 //已经迁移过的数据之间返回