From 7121b1c8c35af5396c4222f0f32a0373503b7bd1 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 04 十一月 2025 15:43:16 +0800
Subject: [PATCH] 0312 增加商店前后端表格不一致防范输出

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

diff --git a/Main/System/Store/StoreModel.cs b/Main/System/Store/StoreModel.cs
index 8310ac8..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;

--
Gitblit v1.8.0