diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardEquipSingleShowPopup2.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardEquipSingleShowPopup2.lua index 97b51d557c..8dd60cbe7a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardEquipSingleShowPopup2.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardEquipSingleShowPopup2.lua @@ -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()