完成离线消息发送和上线获取离线消息

This commit is contained in:
2025-08-13 23:44:59 +08:00
parent f8b876ca2f
commit 022cc1ac3e
39 changed files with 499 additions and 85 deletions

View File

@@ -37,7 +37,11 @@ public static class ChatChannelCenterComponentSystem
//查数据库
channel = await self.Scene.World.DataBase.Query<ChatChannel>(channelId, true);
self.Channels.Add(channel.Id, channel);
if (channel != null)
{
self.Channels.Add(channel.Id, channel);
}
return channel;
}