From f500bc9ed13494037ad1abea3c67be652fa147b9 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Thu, 30 Dec 2021 15:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BA=91=E6=B8=B8=E5=95=86=E4=BA=BA?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=94=B9=E7=B4=A2=E5=BC=95=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/View/GeneralPopup_YunYouMan.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_YunYouMan.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_YunYouMan.lua index 13db7b4ab2..3e3e188c86 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_YunYouMan.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_YunYouMan.lua @@ -6,6 +6,7 @@ local parent local sortingOrder=0 local func local data +local ComposeBook = ConfigManager.GetConfig(ConfigName.ComposeBook) function this:InitComponent(gameObject) self.titleText=Util.GetGameObject(gameObject,"TitleText"):GetComponent("Text") @@ -62,7 +63,7 @@ function this:OnShow(_parent,...) local EquipedEquipList = HeroManager.GetEquipedEquipList() for i = 1, #data.otherData.needItems do for j = 1, #list do - if data.otherData.needItems[i] == tonumber(list[j].itemConfig.Id) then + if ComposeBook[data.otherData.needItems[i]].NeedItems[1][1] == tonumber(list[j].itemConfig.Id) then local sdata = {} sdata.Id = tonumber(list[j].itemConfig.Id) sdata.Num = list[j].num @@ -73,7 +74,7 @@ function this:OnShow(_parent,...) end for i = 1, #data.otherData.needItems do for j = 1, #EquipedEquipList do - if data.otherData.needItems[i] == tonumber(EquipedEquipList[j]) then + if ComposeBook[data.otherData.needItems[i]].NeedItems[1][1] == tonumber(EquipedEquipList[j]) then local sdata = {} sdata.Id = tonumber(EquipedEquipList[j]) sdata.Num = 1