【十五日登陆】无可领取奖励时,入口消失
parent
b4ed183fc6
commit
154e048796
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue