| | |
| | | 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)
|
| | | {
|
| | |
| | | }
|
| | | 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
|
| | | {
|