diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 9a289e3..802a974 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1341,7 +1341,7 @@ func HandleRandWorldChat(ntime int) { isInsert := false length, err := redishandler.GetRedisClient().LLen(redis.WORLD_CHAT_INFO_KEY) if err == nil { - if length >= CHATLIMITNUM { + if length >= CHATLIMITNUM-1 { //需要先把多余的聊天记录删除 delcnt := length - CHATLIMITNUM for i := 0; i < delcnt; i++ { -- libgit2 0.21.0