【云梦豪礼】修复奖励无法领取的问题
parent
30e7ef5bd5
commit
43133199cf
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue