From 199729db70a131617dc89fa65f012775193b0606 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Fri, 5 Jun 2020 14:07:55 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/function.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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