diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 21e2843..9a289e3 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1360,7 +1360,7 @@ func HandleRandWorldChat(ntime int) { //判断最后一条记录 laststr, err := redishandler.GetRedisClient().LIndex(redis.WORLD_CHAT_INFO_KEY, 0) - if err != nil && laststr != "" { + if err == nil && laststr != "" { var tmp QueryChatMessageData err = json.Unmarshal([]byte(laststr), &tmp) if err == nil { -- libgit2 0.21.0