diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua index a4af548840..442f1ea90a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua @@ -353,9 +353,10 @@ function RewardItemSingleShowPopup:OnShow() if itemConfigData.RewardGroup then local reward=ConfigManager.GetConfigData(ConfigName.RewardGroup,itemConfigData.RewardGroup[1]) if reward then - skillId=reward.ShowItem[1][1] - local config=ConfigManager.GetConfigDataByKey(ConfigName.ChangingCard,"CardId",skillId) - skillId=config.Id + local config=ConfigManager.TryGetConfigDataByKey(ConfigName.ChangingCard,"CardId",reward.ShowItem[1][1]) + if config then + skillId=config.Id + end end end elseif itemConfigData.ItemType==ItemType.Incarnation then @@ -365,6 +366,8 @@ function RewardItemSingleShowPopup:OnShow() if skillId~=0 then this.infoBar:SetActive(true) this.infoBarTxt.text="变身卡技能:"..IncarnationManager.GetSkillDesStr(skillId,5) + else + this.infoBar:SetActive(false) end else this.infoBar:SetActive(false)