diff --git a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua index 473c38c99..b7b595673 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua @@ -172,6 +172,7 @@ function this:GetInfoList() if infoList2[i].Id == value.goodsId and value.dynamicBuyTimes > 0 then table.insert(curGiftList[k],value) curGiftList[k].name = infoList2[i].Name + --LogError("礼包名字:"..curGiftList[k].name.."/"..tostring(value.goodsId).."/"..tostring(k)) num = num + 1 end end @@ -191,7 +192,14 @@ function this:OnShow() item.type = i item.index = j item.bg = activityType[i].bg - item.name = curGiftList[i].name + --item.name = curGiftList[i].name + local infoList2 = ConfigManager.GetAllConfigsDataByKey(ConfigName.RechargeCommodityConfig, "PosterUiId", activityType[i].showType) + for k = 1, #infoList2 do + if infoList2[k].Id == curGiftList[i][j].goodsId then + --LogError("dddddd:"..tostring(infoList2[k].Id).."/"..tostring(curGiftList[i][j].goodsId).."/"..infoList2[k].Name) + item.name = infoList2[k].Name + end + end table.insert(tabInfo, item) end end