Main/System/Store/StoreModel.cs
@@ -184,11 +184,11 @@
    /// <summary>
    /// 获取在上下架时间范围内的商品列表
    /// </summary>
    public List<StoreData> GetTimeValidStoreDatas(StoreFunc type)
    {
        List<StoreData> allDatas = TryGetStoreDatas(type);
        if (allDatas == null)
            return null;
    public List<StoreData> GetTimeValidStoreDatas(StoreFunc type)
    {
        List<StoreData> allDatas = TryGetStoreDatas(type);
        if (allDatas == null)
            return null;
        int curOpenDay = TimeUtility.OpenDay + 1;
        List<StoreData> validDatas = new List<StoreData>();
@@ -208,14 +208,64 @@
            if (curOpenDay >= cfg.EndTime)
                continue;
            validDatas.Add(allDatas[i]);
        }
        return validDatas;
    }
    public StoreData GetStoreData(int shopId)
    {
        StoreConfig storeConfig = StoreConfig.Get(shopId);
        }
        return validDatas;
    }
    public bool TryGetTimeValidSkinShopIDByItemID(int itemID, out int shopID)
    {
        shopID = 0;
        var validDatas = GetTimeValidStoreDatas(StoreFunc.HeroSkin);
        if (validDatas == null)
        {
            return false;
        }
        for (int i = 0; i < validDatas.Count; i++)
        {
            var storeConfig = validDatas[i].storeConfig;
            if (storeConfig == null)
            {
                continue;
            }
            if (HasStoreItem(storeConfig, itemID))
            {
                shopID = validDatas[i].shopId;
                return true;
            }
        }
        return false;
    }
    bool HasStoreItem(StoreConfig storeConfig, int itemID)
    {
        if (storeConfig.ItemID == itemID)
        {
            return true;
        }
        if (storeConfig.ItemListEx == null)
        {
            return false;
        }
        for (int i = 0; i < storeConfig.ItemListEx.Length; i++)
        {
            if (storeConfig.ItemListEx[i] != null && storeConfig.ItemListEx[i].Length > 0 && storeConfig.ItemListEx[i][0] == itemID)
            {
                return true;
            }
        }
        return false;
    }
    public StoreData GetStoreData(int shopId)
    {
        StoreConfig storeConfig = StoreConfig.Get(shopId);
        if (storeConfig == null) return null;
        List<StoreData> storeDatas = null;