From 2e7aa5faabcbe00757c74379f67b3231b1b3370f Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 09 十月 2018 16:01:59 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Store/StoreModel.cs | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/System/Store/StoreModel.cs b/System/Store/StoreModel.cs
index a6d1dbc..3bcfbc7 100644
--- a/System/Store/StoreModel.cs
+++ b/System/Store/StoreModel.cs
@@ -1083,12 +1083,21 @@
{
foreach(var key in shopRedDict.Keys)
{
- if(shopRedDict[key].state != RedPointState.None)
+ StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(key);
+ ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(storeConfig.ItemID);
+ switch (itemConfig.Type)
{
- string record = StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "ShopId",key);
- shopRedDict[key].state = RedPointState.None;
- LocalSave.SetBool(record, false);
+ case 26:
+ case 41:
+ if (shopRedDict[key].state != RedPointState.None)
+ {
+ string record = StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "ShopId", key);
+ shopRedDict[key].state = RedPointState.None;
+ LocalSave.SetBool(record, false);
+ }
+ break;
}
+
}
}
--
Gitblit v1.8.0