少年修仙传客户端代码仓库
hch
2025-02-24 7baa60bfcb48013404bdda4f3466b5feeaef69d4
0312 脏字检查 不检查表情
1个文件已修改
16 ■■■■ 已修改文件
System/Chat/ChatSendComponent.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatSendComponent.cs
@@ -154,7 +154,19 @@
            }
            m_OnChating = true;
            string msg = m_ChatInput.text;
            ChatCtrl.Inst.SendChatInfo(ChatCtrl.Inst.presentChatType, msg, info);
            string tmpMsg = ImgAnalysis.ReplaceFace(msg, out int faceCount);
            if (DirtyWordConfig.IsDirtWord(tmpMsg))
            {
                tmpMsg = DirtyWordConfig.IsDirtWord(tmpMsg, '*');
                tmpMsg = tmpMsg.Replace("*", "");
                m_ChatInput.text = tmpMsg;
                SysNotifyMgr.Instance.ShowTip("DirtyWordWarn");
                m_OnChating = false;
                return;
            }
            ChatCtrl.Inst.SendChatInfo(ChatCtrl.Inst.presentChatType, msg, info, false);
            StartCoroutine(Co_CoolDowmChat());
            ModelCenter.Instance.GetModel<FirstTimeRechargeModel>().AskFirstRechargeMore(msg);
@@ -219,7 +231,7 @@
                CheckMaliceChat(msg);
            }
            m_OnChating = true;
            ChatCtrl.Inst.SendChatInfo(ChatCtrl.Inst.presentChatType, msg, info);
            ChatCtrl.Inst.SendChatInfo(ChatCtrl.Inst.presentChatType, msg, info, false);
            StartCoroutine(Co_CoolDowmChat());
        }