少年修仙传客户端代码仓库
hch
2025-02-23 b774cbc5cf754a7ab355c7bd80eb79d63bff34a6
0312 聊天输入框优化,表情不过滤脏字
1个文件已修改
9 ■■■■■ 已修改文件
System/Chat/ChatSendComponent.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatSendComponent.cs
@@ -164,12 +164,13 @@
            m_OnChating = true;
            string msg = m_ChatInput.text;
            string tmpMsg = ImgAnalysis.ReplaceFace(msg, out int faceCount);
            if (DirtyWordConfig.IsDirtWord(msg))
            if (DirtyWordConfig.IsDirtWord(tmpMsg))
            {
                msg = DirtyWordConfig.IsDirtWord(msg, '*');
                msg = msg.Replace("*", "");
                m_ChatInput.text = msg;
                tmpMsg = DirtyWordConfig.IsDirtWord(tmpMsg, '*');
                tmpMsg = tmpMsg.Replace("*", "");
                m_ChatInput.text = tmpMsg;
                SysNotifyMgr.Instance.ShowTip("DirtyWordWarn");
                m_OnChating = false;
                return;