|
@@ -111,7 +111,7 @@ namespace GFGGame
|
|
|
UI_ListShopItem.ProxyEnd();
|
|
|
}
|
|
|
|
|
|
- private async void OnBtnBugItem(EventContext context)
|
|
|
+ private void OnBtnBugItem(EventContext context)
|
|
|
{
|
|
|
ShopCfg cfg = (context.sender as GObject).data as ShopCfg;
|
|
|
bool isSellOut = cfg.maxBuyNum > 0 && cfg.maxBuyNum - ShopDataManager.Instance.GetGoodsBuyNumById(cfg.id) <= 0;
|
|
@@ -120,6 +120,12 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("已售罄");
|
|
|
return;
|
|
|
}
|
|
|
+ if (!ShopDataManager.Instance.GetShopGoodsStateById(cfg.id))
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt(ShopDataManager.Instance.GetShopGoodsStateTips(cfg.id));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (cfg.costType == CostType.RMB)
|
|
|
{
|
|
|
if (!AntiAddictionController.CheckAntiAddictionRecharge(cfg.price))
|