yyl
2026-01-12 67a2ba7feb3576913dc2df2bce8ccc9d87840843
Main/System/Chat/ChatManager.cs
@@ -260,7 +260,7 @@
            return false;
        }
        if (DirtyWordConfig.IsDirtWord(info) || UIHelper.HasSpecialCharac(info)
        if (DirtyWordConfig.IsDirtWord(info) || UIHelper.HasSpecCheckChat(info)
            || DirtyNameConfig.IsDirtName(info))
        {
            errorCode = 3;
@@ -328,6 +328,21 @@
        pack.Content = content;
        pack.Len = (ushort)GetUTF8InfoLen(content);
        GameNetSystem.Instance.SendInfo(pack);
        ChatReport(channelType, content);
    }
    void ChatReport(int chatType, string content, string toPlayer="")
    {
        try
        {
            var channelName = Language.Get($"ChatTab{chatType}");
            OperationLogCollect.Instance.ChatReport(content, channelName, toPlayer, chatType);
        }
        catch (Exception e)
        {
            Debug.LogError(e.StackTrace + e.Message);
        }
    }
    public readonly int maxTalkCount = 1000;  //聊天数量上限