【每日豪礼】可领取,没红点

dev_chengFeng
ZhangBiao 2021-05-27 19:54:54 +08:00
parent 4b2a71c6eb
commit 13b222d998
2 changed files with 11 additions and 1 deletions

View File

@ -50,6 +50,16 @@ function this.ReceivedEnabled(missionId)
return false
end
function this.CheckRedPoint()
local dailyActInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.DailyRecharge)
for i = 1, #dailyActInfo.mission do
if this.ReceivedEnabled(dailyActInfo.mission[i].missionId) then
return true
end
end
return false
end
function this.DailyRechargeReset()
this.InitRechargeStatus()
Game.GlobalEvent:DispatchEvent(GameEvent.Activity.OnActivityOpenOrClose, {

View File

@ -389,7 +389,7 @@ function this.RegisterRedCheckFunc()
--七日狂欢红点
RPData:AddCheckFunc(RedPointType.SevenDayCarnival, SevenDayCarnivalManager.GetSevenDayCarnivalRedPoint)
--每日首充
RPData:AddCheckFunc(RedPointType.DailyRecharge, DailyRechargeManager.ReceivedEnabled)
RPData:AddCheckFunc(RedPointType.DailyRecharge, DailyRechargeManager.CheckRedPoint)
--累计签到
RPData:AddCheckFunc(RedPointType.CumulativeSignIn,OperatingManager.GetSignInRedPointStatus)
RPData:AddCheckFunc(RedPointType.Setting_Ride,PlayerManager.GetPlayerRideRedPoint)