|
@@ -12,6 +12,7 @@ namespace GFGGame
|
|
|
private UI_ZGTHgiftTipsUI _ui;
|
|
|
private int giftItemId = 0;
|
|
|
private ItemCfg itemcfg;
|
|
|
+ private int shopId = 0;
|
|
|
public override void Dispose()
|
|
|
{
|
|
|
|
|
@@ -57,6 +58,7 @@ namespace GFGGame
|
|
|
|
|
|
ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(ActivityOpenCfgArray.Instance.GetCfg(6002).paramsArr[0]);
|
|
|
giftItemId = shopCfg.itemId;
|
|
|
+ shopId = shopCfg.id;
|
|
|
itemcfg = ItemCfgArray.Instance.GetCfg(giftItemId);
|
|
|
_ui.m_Itemlist.numItems = itemcfg.itemsArr.Length;
|
|
|
int buyNum = ShopDataManager.Instance.GetGoodsBuyNumById(shopCfg.id);
|
|
@@ -96,7 +98,7 @@ namespace GFGGame
|
|
|
private void OnBtnGetClick()
|
|
|
{
|
|
|
_ui.m_btnBuy.visible = false;
|
|
|
- ReqShopBuy(itemcfg.id).Coroutine();
|
|
|
+ ReqShopBuy(shopId).Coroutine();
|
|
|
}
|
|
|
private void UpdateBtn()
|
|
|
{
|