Commit 46cff17ad5e559f11ed4f272c43508797964cef5

Authored by 陆恒
1 parent 37e3379f
Exists in master

提交

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/HttpServer/logic/function.go
... ... @@ -1360,7 +1360,7 @@ func HandleRandWorldChat(ntime int) {
1360 1360  
1361 1361 //判断最后一条记录
1362 1362 laststr, err := redishandler.GetRedisClient().LIndex(redis.WORLD_CHAT_INFO_KEY, 0)
1363   - if err != nil && laststr != "" {
  1363 + if err == nil && laststr != "" {
1364 1364 var tmp QueryChatMessageData
1365 1365 err = json.Unmarshal([]byte(laststr), &tmp)
1366 1366 if err == nil {
... ...