From 67a2ba7feb3576913dc2df2bce8ccc9d87840843 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 12 一月 2026 11:26:38 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/Chat/ChatManager.cs | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/Main/System/Chat/ChatManager.cs b/Main/System/Chat/ChatManager.cs
index 6630b36..b5bf315 100644
--- a/Main/System/Chat/ChatManager.cs
+++ b/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; //鑱婂ぉ鏁伴噺涓婇檺
--
Gitblit v1.8.0