diff --git a/lua/app/ui/summon/summon_reward_ui.lua b/lua/app/ui/summon/summon_reward_ui.lua index c0f1be7f..24bddbe7 100755 --- a/lua/app/ui/summon/summon_reward_ui.lua +++ b/lua/app/ui/summon/summon_reward_ui.lua @@ -182,6 +182,9 @@ function SummonRewardUI:onRefresh() self:refreshSummonBtn() end self.tranBg:addClickListener(function() + if self.closeCallBack then + self:closeCallBack() + end self:closeUI() end) self.tranBg:setClickAnimation(false) @@ -215,10 +218,10 @@ function SummonRewardUI:onRefresh() self:refreshSummonBtn() end self.tranBg:addClickListener(function() - self:closeUI() if self.closeCallBack then self:closeCallBack() end + self:closeUI() end) self.tranBg:setClickAnimation(false) end)