装备副本扫荡触发礼包未立即弹出fix
This commit is contained in:
parent
c6de387e85
commit
a81f9de468
@ -1,7 +1,8 @@
|
||||
local CommonManager = class("CommonManager", BaseModule)
|
||||
|
||||
function CommonManager:showMopUpUI(rewards, remainCount, callback, customtitleTx, target)
|
||||
function CommonManager:showMopUpUI(actType, rewards, remainCount, callback, customtitleTx, target)
|
||||
local params = {
|
||||
actType = actType,
|
||||
customtitleTx = customtitleTx,
|
||||
rewards = rewards,
|
||||
remainCount = remainCount,
|
||||
|
||||
@ -150,7 +150,7 @@ function DungeonArmorManager:rspSweep(result)
|
||||
-- 合并奖励
|
||||
local newRewards = {}
|
||||
GFunc.mergeRewards2(result.rewards, newRewards)
|
||||
ModuleManager.CommonManager:showMopUpUI(newRewards, remainCount, function()
|
||||
ModuleManager.CommonManager:showMopUpUI(ModuleManager.MODULE_KEY.DUNGEON_ARMOR, newRewards, remainCount, function()
|
||||
if result.reqData then
|
||||
self:reqSweep(result.reqData.chapter_armor_id, result.reqData.target)
|
||||
end
|
||||
|
||||
@ -150,7 +150,7 @@ function DungeonWeaponManager:rspSweep(result)
|
||||
-- 合并奖励
|
||||
local newRewards = {}
|
||||
GFunc.mergeRewards2(result.rewards, newRewards)
|
||||
ModuleManager.CommonManager:showMopUpUI(newRewards, remainCount, function()
|
||||
ModuleManager.CommonManager:showMopUpUI(ModuleManager.MODULE_KEY.DUNGEON_WEAPON, newRewards, remainCount, function()
|
||||
self:reqSweep(result.reqData.chapter_weapon_id, result.reqData.target)
|
||||
end, nil, result.reqData.target)
|
||||
DataManager.DungeonData:setDirty()
|
||||
|
||||
@ -20,6 +20,7 @@ function MopUpUI:onClose()
|
||||
end
|
||||
|
||||
function MopUpUI:ctor(params)
|
||||
self.actType = params.actType
|
||||
self.customtitleTx = params.customtitleTx
|
||||
self.rewards = params.rewards
|
||||
self.remainCount = params.remainCount
|
||||
@ -32,6 +33,13 @@ end
|
||||
function MopUpUI:onLoadRootComplete()
|
||||
self:_display()
|
||||
self:_addListeners()
|
||||
|
||||
-- 检查礼包弹出
|
||||
if self.actType == ModuleManager.MODULE_KEY.DUNGEON_WEAPON then
|
||||
DataManager.ShopData:checkPopGift(PayManager.PURCHARSE_ACT_TYPE.WEAPON_GIFT)
|
||||
elseif self.actType == ModuleManager.MODULE_KEY.DUNGEON_ARMOR then
|
||||
DataManager.ShopData:checkPopGift(PayManager.PURCHARSE_ACT_TYPE.ARMOR_GIFT)
|
||||
end
|
||||
end
|
||||
|
||||
function MopUpUI:_display()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user