| System/Chat/ChatCenter.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Chat/ChatCtrl.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Chat/ChatSendComponent.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Utility/LanguageVerify.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/Chat/ChatCenter.cs
@@ -282,7 +282,7 @@ if (_chat.translate) { m_VoiceChatDict.Remove(_instance); SendSpeech(_encode, _chat.tick); SendSpeech(_encode, _chat.tick, IsClientBan(_chat.chatType)); } else { @@ -329,16 +329,16 @@ } if (null != _chat.encode) { SendSpeech(_chat.encode, _chat.tick); SendSpeech(_chat.encode, _chat.tick, IsClientBan(_chat.chatType)); m_VoiceChatDict.Remove(_instance); } } } const string downloadUrl = "http://{0}.voice.2460web.com:53001/voice/download"; private void SendSpeech(byte[] encode, long _tick) private void SendSpeech(byte[] encode, long _tick, bool clientBan) { if (IsChatBanned || clientBanned) if (IsChatBanned || clientBan) { SaveSpeech((int)PlayerDatas.Instance.PlayerId, _tick, encode); return; @@ -1028,8 +1028,23 @@ var time = TimeUtility.ServerNow; var hour = Mathf.Min(24, banHour + 1); banHour = hour; time = time.AddTicks(hour * TimeSpan.TicksPerHour); bandTime = time; bandTime = time.AddTicks(hour * TimeSpan.TicksPerHour); OperationLogCollect.Instance.BugReport(Language.Get("ClientBanTitle"), Language.Get("ClientBanContent", banHour)); } public bool IsClientBan(ChatInfoType chatType) { if (!clientBanned) { return false; } if (chatType == ChatInfoType.Fairy) { var model = ModelCenter.Instance.GetModel<DailyQuestModel>(); return model.GetQuestState((int)DailyQuestType.FairyFeast) != DailyQuestModel.DailyQuestState.Normal; } return clientBanned; } #endregion System/Chat/ChatCtrl.cs
@@ -221,7 +221,7 @@ { try { if (chatCenter.IsChatBanned || chatCenter.clientBanned || if (chatCenter.IsChatBanned || chatCenter.IsClientBan(chatType) || IsInviteChat(content) || KillRegex.IsMatch(content)) { return; @@ -299,7 +299,7 @@ msg = CheckHasItem(result, _recentlyChat); chatCenter.recentlyChat = null; if (chatCenter.IsChatBanned || chatCenter.clientBanned) if (chatCenter.IsChatBanned || chatCenter.IsClientBan(type)) { var toPlayer = PteChatID; if (info.HasValue && info.Value.infoint1 == 0) System/Chat/ChatSendComponent.cs
@@ -108,16 +108,16 @@ { return; } if (!chatCenter.clientBanned) { CheckRepeatContent(m_ChatInput.text); CheckMaliceChat(m_ChatInput.text); } if (CheckChatCD()) { SysNotifyMgr.Instance.ShowTip("OnChatCD"); return; } if (!chatCenter.clientBanned) { CheckRepeatContent(m_ChatInput.text); CheckMaliceChat(m_ChatInput.text); } m_OnChating = true; string msg = m_ChatInput.text; ChatCtrl.Inst.SendChatInfo(ChatCtrl.Inst.presentChatType, msg, info); Utility/LanguageVerify.cs
@@ -155,7 +155,7 @@ var chatCenter = ModelCenter.Instance.GetModel<ChatCenter>(); if (!requireVerify || !GetChannel(channelType, out channel) || PlayerDatas.Instance.baseData.VIPLv >= 4 || IsFairyFeast(channelType) || chatCenter.IsChatBanned || IsSystemChat(content) || chatCenter.clientBanned) || chatCenter.IsClientBan(channelType)) { if (callback != null) {