From 6aafcc9cd2636037b4d0a7b184353ef0767193e4 Mon Sep 17 00:00:00 2001 From: grimm <1769111741@qq.com> Date: Mon, 18 Mar 2024 14:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ljsd/jieling/chat/logic/ChatLogic.java | 2 +- .../src/main/java/com/ljsd/jieling/chat/messge/LoopQueue.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/chat/logic/ChatLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/chat/logic/ChatLogic.java index 1e78d2405..4eefd3a30 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/chat/logic/ChatLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/chat/logic/ChatLogic.java @@ -101,7 +101,7 @@ public class ChatLogic { LOGGER.info("getAllChatMessageInfo wrong chatType=>{} uid=>{}", chatType, uid); break; } - ChatProto.GetChatMessageInfoResponse getChatMessageInfoResponse = ChatProto.GetChatMessageInfoResponse + ChatProto.GetChatMessageInfoResponse getChatMessageInfoResponse = ChatProto.GetChatMessageInfoResponse .newBuilder().addAllChatInfo(chatInfoList) .build(); MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REPONSE_VALUE, getChatMessageInfoResponse, true); diff --git a/serverlogic/src/main/java/com/ljsd/jieling/chat/messge/LoopQueue.java b/serverlogic/src/main/java/com/ljsd/jieling/chat/messge/LoopQueue.java index 9998c5430..e3d8ca460 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/chat/messge/LoopQueue.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/chat/messge/LoopQueue.java @@ -67,7 +67,7 @@ public class LoopQueue { long curTime = System.currentTimeMillis(); - while (queueList[nextIndex] != null && nextIndex != endIndex) { + while (queueList[nextIndex].obj != null && nextIndex != endIndex) { if (!needCompareTime && messageId >= queueList[nextIndex].messgeId) { break; }