zhangyuqian 1 жил өмнө
parent
commit
a5d610bb0b

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

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