Main/System/Store/StoreModel.cs
@@ -583,6 +583,30 @@ } return true; } // 弹出购买框,不足则提示已售罄 public void ShowBuyItem(int shopID, int tipType = 0) { var cfg = StoreConfig.Get(shopID); if (!TryGetIsSellOut(cfg, out var cnt)) { buyShopID = shopID; UIManager.Instance.OpenWindow<BuyItemWin>(); } else { if (tipType == 0) { //售罄 SysNotifyMgr.Instance.ShowTip("StoreTip1"); } else if (tipType == 1) { //物品不足提示 SysNotifyMgr.Instance.ShowTip("ItemNotEnough", ItemConfig.Get(cfg.ItemID).ItemName); } } } } public enum StoreFunc