From cebc1d9e101bf5e0cbe029d61217919aed037258 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 13 十一月 2023 12:28:33 +0800
Subject: [PATCH] 9904 子 【BT0.1】【主干】新增每周、每月限购活动与活动显示限制 / 【BT0.1】【主干】新增每周、每月限购 - 周月礼包 可同步主干
---
System/Store/StoreModel.cs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/System/Store/StoreModel.cs b/System/Store/StoreModel.cs
index 316d5ea..2882671 100644
--- a/System/Store/StoreModel.cs
+++ b/System/Store/StoreModel.cs
@@ -1060,6 +1060,25 @@
return shopItemlist;
}
+
+ public List<int[]> GetShopItemlistEx(StoreConfig storeConfig)
+ {
+ if (storeConfig == null) return null;
+
+ List<int[]> shopItemlist = new List<int[]>();
+ if (storeConfig.ItemID != 0)
+ {
+ int replaceId = GetReplaceId(storeConfig.ID, storeConfig.ItemID);
+ shopItemlist.Add(new int[] { replaceId, storeConfig.ItemCnt, 0 });
+ }
+ var extraItem = JsonMapper.ToObject<int[][]>(storeConfig.ItemListEx);
+ for (int i = 0; i < extraItem.Length; i++)
+ {
+ shopItemlist.Add(extraItem[i]);
+ }
+ return shopItemlist;
+ }
+
public bool TryGetShopItemInfo(StoreFunc _type, int _id, out List<ShopItemInfo> _shopItems)
{
_shopItems = null;
--
Gitblit v1.8.0