Преглед на файлове

商城会员每周礼包领取规则修改

huangxiaoyue преди 1 година
родител
ревизия
cac47da359
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeAddUpView.cs

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeAddUpView.cs

@@ -162,7 +162,8 @@ namespace GFGGame
                 item.m_btnWeek.onClick.Add(OnBtnWeekClick);
             }
             item.m_btnWeek.data = vipCfg.id;
-            bool canGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.VipWeekGetStatus) == 0 && RoleDataManager.vipLv == vipCfg.id;
+            bool isWeekGet = MathUtil.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.VipWeekGetStatus), vipCfg.id);
+            bool canGet = !isWeekGet && vipCfg.id <=RoleDataManager.vipLv;
             item.m_btnWeek.grayed = !canGet;
             RedDotController.Instance.SetComRedDot(item.m_btnWeek, canGet, "", -28, -3);
             UI_ListVipItem.ProxyEnd();