zhaoyang 2 år sedan
förälder
incheckning
a6c2ac1f14

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Data/RoleDataManager.cs

@@ -210,11 +210,11 @@ namespace GFGGame
         {
             if (monthCardType == MonthCardType.Gold)
             {
-                return TimeHelper.ServerNow() < GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardGoldEndTime);
+                return TimeHelper.ServerNow() < GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
             }
             else if (monthCardType == MonthCardType.BlackGold)
             {
-                return TimeHelper.ServerNow() < GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardBlackGoldEndTime);
+                return TimeHelper.ServerNow() < GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
             }
             return true;
         }

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBlackCardRewardView.cs

@@ -98,6 +98,12 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("奖励已领取");
                 return;
             }
+
+            if (GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime) < TimeHelper.ServerNow())
+            {
+                PromptController.Instance.ShowFloatTextPrompt("开通黑金卡可领");
+                return;
+            }
             ShopSProxy.ReqGetMonthCardItem(month).Coroutine();
 
         }

+ 3 - 4
GameClient/Assets/Game/HotUpdate/Views/Store/StoreView.cs

@@ -140,6 +140,7 @@ namespace GFGGame
             _ui.m_listSubTab.selectedIndex = 0;
             _curSubTabIndex = 0;
             OnListSubTabChange(_curSubTabIndex);
+            UpdateRedDot();
         }
         private void RenderListSubTabItem(int index, GObject obj)
         {
@@ -199,10 +200,8 @@ namespace GFGGame
         private void UpdateRedDot()
         {
             RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn0.target, RedDotDataManager.Instance.GetChargeAddUpReward());
-            if (_ui.m_comTab.m_c1.selectedIndex == ConstStoreSubId.STORE_CHARGE + 1)
-            {
-                RedDotController.Instance.SetComRedDot(_ui.m_listSubTab.GetChildAt(ConstStoreSubId.STORE_CHARGE_ADDUP).asCom, RedDotDataManager.Instance.GetChargeAddUpReward());
-            }
+
+            RedDotController.Instance.SetComRedDot(_ui.m_listSubTab.GetChildAt(ConstStoreSubId.STORE_CHARGE_ADDUP).asCom, RedDotDataManager.Instance.GetChargeAddUpReward() && (_ui.m_comTab.m_c1.selectedIndex == ConstStoreSubId.STORE_CHARGE + 1));
         }
     }
 }