【邮件领取】领取邮件bug修复
parent
4cec608eed
commit
3d21af1999
|
@ -93,12 +93,16 @@ end
|
||||||
|
|
||||||
function this.GetMailData3()
|
function this.GetMailData3()
|
||||||
NetManager.GetSingleMailRewardData(allGetMail,function (_drop)
|
NetManager.GetSingleMailRewardData(allGetMail,function (_drop)
|
||||||
for index = 1, #allGetMail do
|
-- for index = 1, #allGetMail do
|
||||||
MailManager.UpdataMialIsReadState(allGetMail[index],3)
|
-- MailManager.UpdataMialIsReadState(allGetMail[index],3)
|
||||||
end
|
-- end
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1)
|
NetManager.GetAllMailData(function ()
|
||||||
|
this.OnShowMailListData(MailManager.mialDataList, true)
|
||||||
|
end)
|
||||||
|
UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1,function ()
|
||||||
this.UpdateMailData()
|
this.UpdateMailData()
|
||||||
end)
|
end)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--添加事件监听(用于子类重写)
|
--添加事件监听(用于子类重写)
|
||||||
|
|
|
@ -1115,6 +1115,11 @@ function this.GetSingleMailRewardData(_mailIds, func)
|
||||||
local data = buffer:DataByte()
|
local data = buffer:DataByte()
|
||||||
local msg = PlayerInfoProto_pb.TakeMailResponse()
|
local msg = PlayerInfoProto_pb.TakeMailResponse()
|
||||||
msg:ParseFromString(data)
|
msg:ParseFromString(data)
|
||||||
|
if msg.msg == 0 then
|
||||||
|
PopupTipPanel.ShowTip("无可领取附件!")
|
||||||
|
elseif msg.msg == 2 then
|
||||||
|
PopupTipPanel.ShowTip("背包已满")
|
||||||
|
end
|
||||||
if func then
|
if func then
|
||||||
func(msg.drop)
|
func(msg.drop)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue