少年修仙传客户端代码仓库
client_linchunjie
2018-10-08 d4529565bd49054b9a8b7be2eaea2785438f4c41
System/Store/StoreModel.cs
@@ -1059,6 +1059,7 @@
        }
    }
    public void ClearPetAndMountRedpoint(StoreConfig storeConfig)
    {
        ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(storeConfig.ItemID);
@@ -1074,7 +1075,23 @@
                }
                break;
        }
    }
    public void ClearAllPetAndMountRedpoint(StoreFunc storeFunc)
    {
        if (storeFuncType == StoreFunc.BindStore && storeFunc != StoreFunc.BindStore)
        {
            foreach(var key in shopRedDict.Keys)
            {
                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);
                }
            }
        }
    }
    #endregion