少年修仙传客户端代码仓库
client_linchunjie
2018-11-09 5d3c81b6bee461e078f5bcf15f3dbb0b83fb6966
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
23 ■■■■ 已修改文件
System/OpenServerActivity/FlashSaleItemCell.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/FlashSaleItemCell.cs
@@ -102,7 +102,6 @@
        {
            if (rushToBuyModel.presentFlashShop == null) return;
            StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(saleItem.shopId);
            flashSaleBtn.RemoveAllListeners();
            var operation = rushToBuyModel.GetOperationFlashRushToBuy();
            int seconds = 0;
@@ -132,13 +131,29 @@
                    break;
                case 0:
                    btnStateText.text = Language.Get("FlashRushToBuy102");
                    flashSaleBtn.AddListener(() => {
                        storeModel.SendBuyShopItem(storeConfig,1);
                    });
                    flashSaleBtn.AddListener(SendBuyShopItem);
                    break;
            }
        }
        public void SendBuyShopItem()
        {
            if (saleItem == null) return;
            if(UIHelper.GetMoneyCnt(saleItem.moneyType) >= (ulong)saleItem.moneyNumber)
            {
                C0803_tagCBuyItemList buyShop = new C0803_tagCBuyItemList();
                buyShop.NPCID = 0;
                buyShop.BuyItemIndex = (ushort)saleItem.shopId;
                buyShop.BuyCount = (ushort)1;
                GameNetSystem.Instance.SendInfo(buyShop);
            }
            else
            {
                WindowCenter.Instance.Open<RechargeTipWin>();
            }
        }
        private void RefreshCD(int code,int time)
        {
            if (this.code != code) return;