【邮件领取】领取邮件bug修复

dev_chengFeng
ZhangBiao 2021-01-25 16:00:57 +08:00 committed by zhangqiang
parent 4cec608eed
commit 125e2bcdc0
2 changed files with 14 additions and 5 deletions

View File

@ -93,12 +93,16 @@ end
function this.GetMailData3()
NetManager.GetSingleMailRewardData(allGetMail,function (_drop)
for index = 1, #allGetMail do
MailManager.UpdataMialIsReadState(allGetMail[index],3)
end
UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1)
-- for index = 1, #allGetMail do
-- MailManager.UpdataMialIsReadState(allGetMail[index],3)
-- end
NetManager.GetAllMailData(function ()
this.OnShowMailListData(MailManager.mialDataList, true)
end)
UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1,function ()
this.UpdateMailData()
end)
end)
end
--添加事件监听(用于子类重写)

View File

@ -1115,6 +1115,11 @@ function this.GetSingleMailRewardData(_mailIds, func)
local data = buffer:DataByte()
local msg = PlayerInfoProto_pb.TakeMailResponse()
msg:ParseFromString(data)
if msg.msg == 0 then
PopupTipPanel.ShowTip("无可领取附件!")
elseif msg.msg == 2 then
PopupTipPanel.ShowTip("背包已满")
end
if func then
func(msg.drop)
end