parent
884acb8d69
commit
a3efff6e68
|
@ -130,8 +130,19 @@ function RewardEquipSingleShowPopup2:BindEvent()
|
|||
local heroId=""
|
||||
if self.curHeroData then
|
||||
heroId=self.curHeroData.dynamicId
|
||||
local list=GiftManager.GetHeroGifts(heroId)
|
||||
if #list >= 12 then
|
||||
PopupTipPanel.ShowTip("礼物数量已达上限!")
|
||||
return
|
||||
end
|
||||
|
||||
else
|
||||
heroId="0"
|
||||
local list=GiftManager.GetPlayerGifts()
|
||||
if #list >= 12 then
|
||||
PopupTipPanel.ShowTip("礼物数量已达上限!")
|
||||
return
|
||||
end
|
||||
end
|
||||
NetManager.GiftEquipWearRequest(1,heroId,idList,function()
|
||||
self:ClosePanel()
|
||||
|
|
Loading…
Reference in New Issue