少年修仙传客户端代码仓库
Client_PangDeRong
2018-10-17 6d24c800b1f2bd3896e2504d1cb341c7c233a554
4074 【前端】限时抢购开发
3个文件已修改
16 ■■■■■ 已修改文件
System/OpenServerActivity/FlashRushToBuyCoolDown.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/FlashRushToBuyModel.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/FlashSaleItemCell.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/FlashRushToBuyCoolDown.cs
@@ -48,7 +48,7 @@
                        int split = (3600 - seconds)/30 % 2;
                        if(split == 0)
                        {
                            timeText.text = Language.Get("FlashRushToBuy106", TimeUtility.SecondsToHMS(seconds));
                            timeText.text = Language.Get("FlashRushToBuy106", TimeUtility.SecondsToMS(seconds));
                        }
                        else
                        {
System/OpenServerActivity/FlashRushToBuyModel.cs
@@ -196,6 +196,7 @@
        }
        public event Action<int>UpdateFullSeverBuyEvent;
        private Dictionary<int, int> fullSeverBuyInfoDict = new Dictionary<int, int>();
        public void UpdateFullSeverBuyInfo(HA906_tagGCStoreServerBuyCntInfo buyCntInfo)
        {
@@ -210,6 +211,10 @@
                {
                    fullSeverBuyInfoDict[(int)info.GoodsID] = (int)info.BuyCnt;
                }
                if (UpdateFullSeverBuyEvent != null)
                {
                    UpdateFullSeverBuyEvent((int)info.GoodsID);
                }
            }
        }
        public int GetFullServerBuyCntById(int goodsId)
System/OpenServerActivity/FlashSaleItemCell.cs
@@ -23,7 +23,6 @@
        FlashRushToBuyModel rushToBuyModel { get { return ModelCenter.Instance.GetModel<FlashRushToBuyModel>(); } }
        StoreModel storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
        HeavenBattleModel battleModel { get { return ModelCenter.Instance.GetModel<HeavenBattleModel>(); } }
        ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
        OperationFlashRushToBuy.FlashSaleItem saleItem;
@@ -32,7 +31,7 @@
        int code = 0;
        private void OnEnable()
        {
            battleModel.RefreshGameRecInfoAct += UpdateFullServerBuy;
            rushToBuyModel.UpdateFullSeverBuyEvent += UpdateFullServerBuy;
            storeModel.RefreshBuyShopLimitEvent += RefreshBuyShopLimitEvent;
            rushToBuyModel.UpdateAllAppointmentEvent += UpdateAllAppointmentInfo;
            rushToBuyModel.UpdateAppointmentEvent += UpdateAppointmentInfo;
@@ -42,7 +41,7 @@
        private void OnDisable()
        {
            storeModel.RefreshBuyShopLimitEvent -= RefreshBuyShopLimitEvent;
            battleModel.RefreshGameRecInfoAct -= UpdateFullServerBuy;
            rushToBuyModel.UpdateFullSeverBuyEvent -= UpdateFullServerBuy;
            rushToBuyModel.UpdateAllAppointmentEvent -= UpdateAllAppointmentInfo;
            rushToBuyModel.UpdateAppointmentEvent -= UpdateAppointmentInfo;
            KnapsackTimeCDMgr.Instance.RefreshNormalCDAct -= RefreshCD;
@@ -75,9 +74,9 @@
            UpdateSaleItemSellState();
        }
        private void UpdateFullServerBuy(int type)
        private void UpdateFullServerBuy(int shopId)
        {
            if (type != RefreshFullServerBuyType) return;
            if (saleItem == null || saleItem.shopId != shopId) return;
            UpdateSaleItemSellState();
        }