From 3b2a6bb9047cfce9f501593b3669a9c1af6c5df4 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 05 十一月 2025 17:40:23 +0800
Subject: [PATCH] 130 战斗修改回合样式

---
 Main/System/Store/StoreModel.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/Main/System/Store/StoreModel.cs b/Main/System/Store/StoreModel.cs
index cc788fa..5b1ffd7 100644
--- a/Main/System/Store/StoreModel.cs
+++ b/Main/System/Store/StoreModel.cs
@@ -281,6 +281,11 @@
         for (int i = 0; i < netPack.ShopIDList.Length; i++)
         {
             var config = StoreConfig.Get((int)netPack.ShopIDList[i]);
+            if (config == null)
+            {
+                Debug.LogError("鍓嶅悗绔晢搴楁暟鎹笉涓�鑷�");
+                continue;
+            }
             //UnlockType 2 鐢辨湇鍔$閫氱煡
             StoreData storeData = new StoreData();
             storeData.shopId = config.ID;
@@ -541,6 +546,17 @@
         
         return 0;
     }
+
+    public bool CheckPopBuyWin(int shopID)
+    {
+        int state = GetShopIDState(shopID);
+        if (state == 1 || state == 3)
+        {
+            SysNotifyMgr.Instance.ShowTip(StringUtility.Contact("StoreTip", state));
+            return false;
+        }
+        return true;
+    }
 }
 
 public enum StoreFunc

--
Gitblit v1.8.0