少年修仙传客户端代码仓库
hch
2020-09-07 e312d83f373e52c3937693eca172abd91c8d583a
4621 【主干】再使用x个丹药达到上限判断条件优化;关闭极光推送
5个文件已修改
33 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Alchemy/AlchemyBatchWin.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Alchemy/AlchemyModel.cs 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmModel.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/SystemSetting/ActivitiesPushModel.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -1362,6 +1362,7 @@
    #region 极光推送相关
    public void GeTui_SendLocalMessage(JsonData jsonData)
    {
        return;
        DebugEx.Log("GeTui_SendLocalMessage:" + jsonData["id"]);
        //      ------ 举例 ------
        //        JsonData _params = new JsonData ();
@@ -1387,6 +1388,7 @@
    public void GeTui_RemoveLocalMessage(string id)
    {
        return;
        DebugEx.Log("GeTui_RemoveLocalMessage:" + id);
#if !UNITY_EDITOR
        m_Json.Clear();
System/Alchemy/AlchemyBatchWin.cs
@@ -27,6 +27,7 @@
        public static int alchemyId = 0;
        PackModel playerPack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        AlchemyModel model { get { return ModelCenter.Instance.GetModel<AlchemyModel>(); } }
        #region Built-in
        protected override void BindController()
@@ -76,9 +77,10 @@
            var recommandCount = maxValue;
            AlchemyDrugUseLimit drugUseLimit;
            var itemCount = playerPack.GetItemCountByID(PackType.Item, itemId);
            if (model.TryGetAlchemyUseLimit(itemId, out drugUseLimit))
            {
                var canEatCount = drugUseLimit.GetUseLimit() - drugUseLimit.eatTimes;
                var canEatCount = drugUseLimit.GetUseLimit() - drugUseLimit.eatTimes - itemCount;
                recommandCount = Mathf.Max(1, Mathf.Min(maxValue, canEatCount));
                m_Remind.gameObject.SetActive(true);
                m_Remind.text = Language.Get("AlchemyBatchRecommand", canEatCount);
System/Alchemy/AlchemyModel.cs
@@ -1,8 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine;
namespace Snxxz.UI
{
    [XLua.LuaCallCSharp]
@@ -683,6 +683,14 @@
                        {
                            continue;
                        }
                        var itemCount = packModel.GetItemCountByID(PackType.Item, config.AlchemItemID);
                        if (drugUseLimit.GetUseLimit() - drugUseLimit.eatTimes - itemCount <= 0)
                        {
                            //背包中有足够的灵根丹
                            continue;
                        }
                    }
                    else
                    {
@@ -708,6 +716,7 @@
                                continue;
                            }
                        }
                        s_Alchemyables.Add(id);
                    }
                }
@@ -950,5 +959,5 @@
            alchemyRedpoint = new Redpoint(redpoint.id, AlchemyModel.redpointIndex++);
        }
    }
}
}
System/Realm/RealmModel.cs
@@ -615,6 +615,7 @@
        public void TryPushRealmPoolMessage()
        {
            return;
            var remainTime = 0f;
            var realmLevel = PlayerDatas.Instance.baseData.realmLevel;
            var config = RealmConfig.Get(realmLevel);
System/SystemSetting/ActivitiesPushModel.cs
@@ -79,6 +79,7 @@
        #region 开服活动冲榜推送
        private void SetRankStartPushInfo()
        {
            return;
            for (int i = 0; i < rankTypelist.Count; i++)
            {
                int rankStartId = WholePeopleRankStart + rankTypelist[i];
@@ -104,6 +105,7 @@
        private void SetRankEndPushInfo()
        {
            return;
            for (int i = 0; i < rankTypelist.Count; i++)
            {
                int rankEndId = WholePeopleRankEnd + rankTypelist[i];
@@ -129,6 +131,7 @@
        private void RemovePushByActiveClose(PushInfoType type)
        {
            return;
            switch (type)
            {
                case PushInfoType.RankStart:
@@ -156,6 +159,7 @@
        private void RemovePushByTime(PushInfoType type, int time)
        {
            return;
            int remainHour = time - TimeUtility.ServerNow.Hour;
            int remainMinute = 0 - TimeUtility.ServerNow.Minute;
            int remainSecond = remainHour * 60 * 60 + remainMinute * 60;
@@ -201,6 +205,7 @@
        private void UpdateAppointment(int shopGuid)
        {
            return;
            if (!rushToBuyModel.IsOpen) return;
            var operation = rushToBuyModel.GetOperationFlashRushToBuy();
@@ -229,6 +234,7 @@
        private void SetFlashRushToBuyAppointmentInfo()
        {
            return;
            if (!rushToBuyModel.IsOpen) return;
            var operation = rushToBuyModel.GetOperationFlashRushToBuy();
@@ -256,6 +262,7 @@
        private void RemoveFlashRushToBuyAppointmentByTime()
        {
            return;
            if (!rushToBuyModel.IsOpen) return;
            var operation = rushToBuyModel.GetOperationFlashRushToBuy();