Browse Source

璇玑卡奖励提示修改

huangxiaoyue 1 year ago
parent
commit
e815f23412

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBlackCardRewardView.cs

@@ -89,12 +89,18 @@ namespace GFGGame
             GObject obj = context.sender as GObject;
 
             int month = (int)obj.data;
-            if (month != _month)
+            if (month < _month)
             {
                 PromptController.Instance.ShowFloatTextPrompt("逾期单品不可领取");//奖励不可领
                 return;
             }
 
+            if (month > _month)
+            {
+                PromptController.Instance.ShowFloatTextPrompt("领取时间未到");
+                return;
+            }
+
             if (MathUtil.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardExclusiveClothesMouth), month))
             {
                 PromptController.Instance.ShowFloatTextPrompt("奖励已领取");