Browse Source

屏蔽月卡弹窗和礼包弹窗

zhangyuqian 1 năm trước cách đây
mục cha
commit
ee9ca07259

+ 33 - 33
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -1106,24 +1106,24 @@ namespace GFGGame
                     return;
                     return;
                 }
                 }
             }
             }
-            //月卡弹窗
-            if (GameGlobal.AutoMonthlyCardView)
-            {
-                GameGlobal.AutoMonthlyCardView = false;
-                if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity) == 0)
-                {
-                    long endTime1 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
-                    long endTime2 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
-                    if (endTime1 < TimeHelper.ServerNow())
-                    {
-                        if (endTime2 < TimeHelper.ServerNow())
-                        {
-                            ViewManager.Show<MonthlyCardTipsView>();
-                            return;
-                        }
-                    } 
-                }
-            }
+            //月卡弹窗 暂时屏蔽该两个弹窗
+            //if (GameGlobal.AutoMonthlyCardView)
+            //{
+            //    GameGlobal.AutoMonthlyCardView = false;
+            //    if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity) == 0)
+            //    {
+            //        long endTime1 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
+            //        long endTime2 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
+            //        if (endTime1 < TimeHelper.ServerNow())
+            //        {
+            //            if (endTime2 < TimeHelper.ServerNow())
+            //            {
+            //                ViewManager.Show<MonthlyCardTipsView>();
+            //                return;
+            //            }
+            //        } 
+            //    }
+            //}
             //活动公告弹窗
             //活动公告弹窗
             if (GameGlobal.AutoAcitivtyTipsLoginView)
             if (GameGlobal.AutoAcitivtyTipsLoginView)
             {
             {
@@ -1134,22 +1134,22 @@ namespace GFGGame
                     return;
                     return;
                 }
                 }
             }
             }
-            if (GameGlobal.AutoSpecialOfferGiftBoxView)
-            {
-                //List<int> shopListId = new List<int>() { 40012, 40013 };
-                //if (ShopDataManager.Instance.GetShopIdCanBuyInShop(ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY, shopListId))
-                //{
-                //    ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_GIFT_BAG, ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY });
-                //    return;
-                //}
-
-                if (LimitedTimeGiftBoxDataManager.Instance.SpecialOfferGiftBoxCanBuy())
-                {
-                    ViewManager.Show<SpecialOfferGiftBoxView>();
-                    return;
-                }
+            //if (GameGlobal.AutoSpecialOfferGiftBoxView)
+            //{
+            //    //List<int> shopListId = new List<int>() { 40012, 40013 };
+            //    //if (ShopDataManager.Instance.GetShopIdCanBuyInShop(ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY, shopListId))
+            //    //{
+            //    //    ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_GIFT_BAG, ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY });
+            //    //    return;
+            //    //}
+
+            //    if (LimitedTimeGiftBoxDataManager.Instance.SpecialOfferGiftBoxCanBuy())
+            //    {
+            //        ViewManager.Show<SpecialOfferGiftBoxView>();
+            //        return;
+            //    }
 
 
-            }
+            //}
             if (FieldDataManager.Instance.waitToShowFieldFightEndView)
             if (FieldDataManager.Instance.waitToShowFieldFightEndView)
             {
             {
                 ViewManager.Show<FieldFightEndView>();
                 ViewManager.Show<FieldFightEndView>();