lcy
2 天以前 4b1247636bb04a0f0491537cb9853cd0b2101367
Main/System/Store/StoreModel.cs
@@ -362,14 +362,28 @@
    public void SendBuyShopItem(StoreConfig model, int count)
    {
        if (UIHelper.CheckMoneyCount(model.MoneyType, model.MoneyNum * count, 2))
        if (model.MoneyType <= 0)
        {
            CA310_tagCSBuyItem buyShop = new CA310_tagCSBuyItem();
            buyShop.ShopID = (ushort)model.ID;
            buyShop.BuyCount = (uint)count;
            GameNetSystem.Instance.SendInfo(buyShop);
            if (UIHelper.CheckItemCount(model.CostItemID, model.MoneyNum * count, 2))
            {
                SendBuyItem(model.ID, count);
            }
        }
        else
        {
            if (UIHelper.CheckMoneyCount(model.MoneyType, model.MoneyNum * count, 2))
            {
                SendBuyItem(model.ID, count);
            }
        }
    }
    public void SendBuyItem(int shopID, int count)
    {
        CA310_tagCSBuyItem buyShop = new CA310_tagCSBuyItem();
        buyShop.ShopID = (ushort)shopID;
        buyShop.BuyCount = (uint)count;
        GameNetSystem.Instance.SendInfo(buyShop);
    }
    //货币购买的二次确认框的确认记录
@@ -392,16 +406,21 @@
            return;
        }
        ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), Language.Get("BuyStoreItem", model.MoneyNum, model.MoneyType, model.Name),
        Language.Get("ConfirmCancel102"), (bool isOk, bool isToggle) =>
        {
            if (isOk)
        ConfirmCancel.ToggleConfirmCancel(
            Language.Get("Mail101"),
            model.MoneyType <= 0 ?
                Language.Get("BuyStoreItem1", model.MoneyNum, ItemConfig.Get(model.CostItemID).ItemName, model.Name) :
                Language.Get("BuyStoreItem", model.MoneyNum, model.MoneyType, model.Name),
            Language.Get("ConfirmCancel102"),
            (isOk, isToggle) =>
            {
                SendBuyShopItem(model, count);
                buyItemCheckDict[eventType] = isToggle;
            }
        });
                if (isOk)
                {
                    SendBuyShopItem(model, count);
                    buyItemCheckDict[eventType] = isToggle;
                }
            });
    }
    //花仙玉购买的二次确认框(本次登录)