|
@@ -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))
|
|
{
|
|
{
|