From 3c3b4e0878ee25a4705af75cdd4b8562be3d477c Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 17 九月 2018 16:55:36 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Utility/LanguageVerify.cs |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/Utility/LanguageVerify.cs b/Utility/LanguageVerify.cs
index cd4161f..1ff9daf 100644
--- a/Utility/LanguageVerify.cs
+++ b/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
     {

--
Gitblit v1.8.0