| | |
| | | |
| | | if (config.WinName == "StoreBaseWin") |
| | | { |
| | | //指定商品 |
| | | StoreModel.Instance.jumpShopID = int.Parse(config.Extra); |
| | | if (StoreModel.Instance.jumpShopID == 0) |
| | | if (int.TryParse(config.Extra, out int result)) |
| | | { |
| | | StoreModel.Instance.selectStoreFuncType = StoreFunc.Normal; |
| | | } |
| | | else |
| | | { |
| | | StoreModel.Instance.selectStoreFuncType = (StoreFunc)StoreConfig.Get(StoreModel.Instance.jumpShopID).ShopType; |
| | | //指定商品 |
| | | StoreModel.Instance.jumpShopID = result; |
| | | if (StoreModel.Instance.jumpShopID == 0) |
| | | { |
| | | StoreModel.Instance.selectStoreFuncType = StoreFunc.Normal; |
| | | } |
| | | else |
| | | { |
| | | StoreModel.Instance.selectStoreFuncType = (StoreFunc)StoreConfig.Get(StoreModel.Instance.jumpShopID).ShopType; |
| | | } |
| | | } |
| | | } |
| | | else if (config.WinName == "HeroDebutCallWin") |
| | |
| | | if (actHeroAppearConfig.ExShopCostItemID != int.Parse(config.Extra)) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("ActivityNoOpen"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | if (UIManager.Instance.IsOpened<HeroDebutCallWin>()) |
| | | { |
| | | UIManager.Instance.CloseWindow<HeroDebutCallWin>(); |
| | | UIManager.Instance.OpenWindow<HeroDebutCallWin>(); |
| | | } |
| | | } |
| | | } |
| | | else if (config.WinName == "HeroDebutSkinWin") |
| | | { |
| | | var heroDebutAct = HeroDebutManager.Instance.GetOperationHeroAppearInfo(); |
| | | if (heroDebutAct == null) return; |
| | | |
| | | ActHeroAppearConfig actHeroAppearConfig = ActHeroAppearConfig.Get(heroDebutAct.CfgID); |
| | | if (actHeroAppearConfig == null) return; |
| | | |
| | | if (!HeroDebutManager.Instance.HasItemInSkinCTGIDList(heroDebutAct.CfgID, int.Parse(config.Extra))) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("ActivityNoOpen"); |
| | | return; |
| | | } |
| | | else |
| | | { |