From 5bd8817873bcc16713bd9e691b798f319ce9de0b Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 10 一月 2026 22:36:30 +0800
Subject: [PATCH] 0312 接入聊天监控但注释掉不会发等后台接入

---
 Main/System/Chat/ChatManager.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Main/System/Chat/ChatManager.cs b/Main/System/Chat/ChatManager.cs
index 97b146c..b5bf315 100644
--- a/Main/System/Chat/ChatManager.cs
+++ b/Main/System/Chat/ChatManager.cs
@@ -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;  //鑱婂ぉ鏁伴噺涓婇檺

--
Gitblit v1.8.0