【邮件】背包已满时领取邮件,领取按钮状态变为了删除,返回邮件列表,状态变为已领取(修复)

dev_chengFeng
ZhangBiao 2021-02-22 21:17:06 +08:00
parent bf24b8cc51
commit 23f9c2905d
1 changed files with 5 additions and 3 deletions

View File

@ -38,9 +38,11 @@ function MainSingleInfoPanel:BindEvent()
table.insert(allGetMail,mailData.mailId)
IndicationManager.getRewardFromMail=true
NetManager.GetSingleMailRewardData(allGetMail,function (_drop)
UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1,function()
end)
self:CallBackEvent()
UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1)
--如果不能领取,不改变按钮状态
if #_drop.itemlist > 0 or #_drop.equipId > 0 or #_drop.Hero > 0 or #_drop.soulEquip > 0 or #_drop.pokemon > 0 then
self:CallBackEvent()
end
end)
end)