From 410fb55f6627e86b6276b42e3afb2c2b0423e647 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 26 Nov 2021 18:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E5=9C=B0=E7=83=98=E7=82=89=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/GeneralBigPopup_RecrutDetail.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua index edcd15df40..b527251cd3 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua @@ -120,14 +120,10 @@ function this:OnShow(_parent,_Data) local newList = {} itemList = RecruitManager.GetRewardPreviewData(poolType) local souls = RecruitManager.GetWishTailsManSoulChips() - for i = 1,#itemList do - for k,v in pairs(souls) do - if itemList[i].Reward[1] == v then - table.insert(newList,itemList[i]) - break - end - end - end + for k,v in pairs(souls) do + table.insert(newList,{Reward = {v,1},WeightShow = itemList[k].WeightShow}) + end + LogGreen("#newList:"..#newList) UpItemList = newList else UpItemList = RecruitManager.GetRewardPreviewData(poolUpType) @@ -204,7 +200,7 @@ function this:BuildRateData(actType,UpItem,upItemList) elseif actType == ActivityTypeDef.tiandihonglu then for n,m in ipairs(upItemList) do local itemConfig=ConfigManager.TryGetConfigData(ConfigName.ItemConfig, m.Reward[1]) - table.insert(_upRateList,{id = m.Reward[1],tag = "法宝碎片UP!", name=itemConfig.Name,value = m.Weight,color = "AD4152"}) + table.insert(_upRateList,{id = m.Reward[1],tag = "法宝碎片UP!", name=itemConfig.Name,value = m.WeightShow,color = "AD4152"}) end rateList = this:RefreshSoulRate(UpItem,_upRateList,ItemType.talismanSoulChip) end