【邮件领取】领取邮件bug修复
parent
4cec608eed
commit
3d21af1999
|
@ -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
|
||||
|
||||
--添加事件监听(用于子类重写)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue