Browse Source

红点添加时间判断

zhangyuqian 1 year ago
parent
commit
a5d610bb0b
1 changed files with 10 additions and 2 deletions
  1. 10 2
      GameClient/Assets/Game/HotUpdate/Data/TimeTracingDataManager.cs

+ 10 - 2
GameClient/Assets/Game/HotUpdate/Data/TimeTracingDataManager.cs

@@ -51,7 +51,11 @@ namespace GFGGame
         //获取关卡奖励状态
         //获取关卡奖励状态
         public bool GetLevelRewardStatus(int levelID = 0)
         public bool GetLevelRewardStatus(int levelID = 0)
         {
         {
-            if(levelID == 0)
+            if(ActivityDataManager.Instance.GetCurOpenActiveByType(21) == 0)
+            {
+                return false;
+            }
+            if (levelID == 0)
             {
             {
                 return GetAllLevelRewardStatus(true);
                 return GetAllLevelRewardStatus(true);
             }
             }
@@ -165,7 +169,11 @@ namespace GFGGame
 
 
         public bool GetAllChapterReward()
         public bool GetAllChapterReward()
         {
         {
-            foreach(int i in chapterIdList)
+            if (ActivityDataManager.Instance.GetCurOpenActiveByType(21) == 0)
+            {
+                return false;
+            }
+            foreach (int i in chapterIdList)
             {
             {
                 if(GetChapterIDRewardStatus(i))
                 if(GetChapterIDRewardStatus(i))
                 {
                 {