【十五日登陆】无可领取奖励时,入口消失

dev_chengFeng
zhangqiang 2021-04-26 15:19:11 +08:00
parent b4ed183fc6
commit 154e048796
2 changed files with 14 additions and 1 deletions

View File

@ -61,5 +61,17 @@ function this.CheckRedPoint()
end
return false
end
--是否全部领取完奖励
function this.IsGetAllReward()
local getFinish = true
if Data then
for i = 1, #Data.rewards do
if Data.rewards[i].State == 0 then
getFinish = false
end
end
end
return getFinish
end
return FifteenDayGiftManager

View File

@ -1365,7 +1365,8 @@ function this.RefreshEightGiftPreview()
if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGift) then
FifteenDayGiftManager.InitRewardData()
local bool = FifteenDayGiftManager.CheckRedPoint()
if bool then
local IsGetAllReward = FifteenDayGiftManager.IsGetAllReward()
if bool or not IsGetAllReward then
this.fgBtn:SetActive(true)
this.rpFifteenDayEffect:SetActive(true)
CheckRedPointStatus(RedPointType.FifteenDayGift_1)