PC-202302260912\Administrator 2025-08-05 18:31:14 +08:00
parent 884acb8d69
commit a3efff6e68
1 changed files with 11 additions and 0 deletions

View File

@ -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()