Browse Source

摘星未开启有红点问题

huangxiaoyue 1 year ago
parent
commit
0943d68676
1 changed files with 3 additions and 0 deletions
  1. 3 0
      GameClient/Assets/Game/HotUpdate/Data/RedDotDataManager.cs

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Data/RedDotDataManager.cs

@@ -990,6 +990,9 @@ namespace GFGGame
         /// <returns></returns>
         public bool GetLuckyBoxFreeTimes()
         {
+            if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(LuckyBoxView).Name, false))
+                return false;
+
             long freeTime = LuckyBoxDataManager.Instance.GetFreeTime(LuckyBoxDataManager.BOX_ID_2);
             if (freeTime > 0)
             {