少年修仙传客户端代码仓库
client_linchunjie
2018-09-17 ebe793ccccd5d6e7a9b3f64157048f128402b990
3621 仙盟宴会活动期间仙盟频道聊天不走猫耳屏蔽验证
1个文件已修改
14 ■■■■■ 已修改文件
Utility/LanguageVerify.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/LanguageVerify.cs
@@ -150,7 +150,8 @@
    public void VerifyChat(string content, ChatInfoType channelType, Action<bool, string> callback)
    {
        int channel = 0;
        if (!requireVerify || !GetChannel(channelType, out channel) || PlayerDatas.Instance.baseData.VIPLv >= 4)
        if (!requireVerify || !GetChannel(channelType, out channel) || PlayerDatas.Instance.baseData.VIPLv >= 4
            || IsFairyFeast(channelType))
        {
            if (callback != null)
            {
@@ -343,6 +344,17 @@
        }
        return true;
    }
    bool IsFairyFeast(ChatInfoType type)
    {
        var dailyQuestModel = ModelCenter.Instance.GetModel<DailyQuestModel>();
        DailyQuestOpenTime dailyQuestOpenTime;
        if (dailyQuestModel.TryGetOpenTime((int)DailyQuestType.FairyFeast, out dailyQuestOpenTime))
        {
            return type == ChatInfoType.Fairy && dailyQuestOpenTime.InOpenTime();
        }
        return false;
    }
    public class VerifyResponse
    {