【云梦豪礼】修复奖励无法领取的问题

dev_chengFeng
gaoxin 2022-02-24 00:20:58 +08:00
parent 30e7ef5bd5
commit 43133199cf
2 changed files with 10 additions and 6 deletions

View File

@ -41,6 +41,9 @@ end
function this.ReceivedEnabled(missionId)
local dailyActInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.DailyRecharge)
if not dailyActInfo then
return false
end
local actRewardConfig = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig, missionId)
for i = 1,#dailyActInfo.mission do
if missionId == dailyActInfo.mission[i].missionId then

View File

@ -48,16 +48,17 @@ end
--添加事件监听(用于子类重写)
function ActivityMainPanel:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityOpenOrClose, function()
this:OnOpen(this.activityType,_CurPageIndex,true)
end)
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityOpenOrClose, this.onActivityOpenOrClose)
end
--移除事件监听(用于子类重写)
function ActivityMainPanel:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClose, function()
this:OnOpen(this.activityType,_CurPageIndex,true)
end)
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClose, this.onActivityOpenOrClose)
end
--
function ActivityMainPanel.onActivityOpenOrClose()
this:OnOpen(this.activityType,_CurPageIndex,true)
end
function ActivityMainPanel:CheckActOpen(_index)