diff --git a/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevel.lua b/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevel.lua index 0e23e1a998..8ac26a1feb 100644 --- a/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevel.lua +++ b/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevel.lua @@ -78,7 +78,7 @@ function this:OnShow(_parent,...) fightLevelData = args[1] --条件组数据 - condition = fightLevelData.config.ConditionValue + condition = fightLevelData.config.ConditionValue or {} this:FormationAdapter() this:ShoeCondition() @@ -89,7 +89,7 @@ function this.MainLevelInfoRefresh() if curChapterData then fightLevelData = curChapterData.node[fightLevelData.config.Id] --条件组数据 - condition = fightLevelData.config.ConditionValue + condition = fightLevelData.config.ConditionValue or {} this:FormationAdapter() this:ShoeCondition() diff --git a/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevelReward.lua b/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevelReward.lua index 3dbcde1803..0b2399c795 100644 --- a/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevelReward.lua +++ b/Assets/ManagedResources/~Lua/Modules/FightLevel/View/FightLevelInfoPopup_MainLevelReward.lua @@ -65,7 +65,9 @@ end function this.SingleDataShow(_go,_rewardData,_index) local index = _index - 1 local reward = RewardGroup[_rewardData].ShowItem - Util.GetGameObject(_go, "titleImage/titleText"):GetComponent("Text").text = index == 0 and "首通奖励" or HardStageCondition[fightLevelData.config.ConditionValue[index]].Describe + local condition = fightLevelData.config.ConditionValue or {} + local des = condition and HardStageCondition[condition[index]].Describe or "" + Util.GetGameObject(_go, "titleImage/titleText"):GetComponent("Text").text = index == 0 and "首通奖励" or des Util.GetGameObject(_go, "titleImage/Text"):GetComponent("Text").text = index Util.GetGameObject(_go, "okButton"):GetComponent("Image").sprite = this.spLoader:LoadSprite("g_ghhb_yidacheng_zh") Util.GetGameObject(_go, "noButton"):GetComponent("Image").sprite = this.spLoader:LoadSprite("g_ghhb_weidacheng_zh") diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua index 0655268b88..75048e9316 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua @@ -318,7 +318,7 @@ function this.FightLevelShow() local HardStageFightResponseMsg = FightLevelManager.GetHardStageFightResponseMsg() local oldBattlefightLevelData = FightLevelManager.GetcurBattlefightLevelData() local curBattlefightLevelData = FightLevelManager.GetChapterLevelData(oldBattlefightLevelData.config.Chapter,oldBattlefightLevelData.nodeId) - local condition = curBattlefightLevelData.config.ConditionValue + local condition = curBattlefightLevelData.config.ConditionValue or {} this.isFirstEffect:SetActive(HardStageFightResponseMsg.currentIsHonour) if starListEffect and #starListEffect > 0 then for i=1,#starListEffect do