From 4f2fa6080dd5448af7c601e7e739862da076a14f Mon Sep 17 00:00:00 2001 From: fatiao <515948292@qq.com> Date: Mon, 29 Dec 2025 18:07:37 +0800 Subject: [PATCH] =?UTF-8?q?UIBattle:=20=E6=98=BE=E7=A4=BA=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Lua/UI/UIBattle/UIBattleView.lua | 3 +-- Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Lua/UI/UIBattle/UIBattleView.lua b/Assets/Lua/UI/UIBattle/UIBattleView.lua index 09accd217..35fbf886d 100644 --- a/Assets/Lua/UI/UIBattle/UIBattleView.lua +++ b/Assets/Lua/UI/UIBattle/UIBattleView.lua @@ -182,7 +182,7 @@ function UIBattleView:RefreshStoryTaskInfo() table.sort(keys) for _, k in ipairs(keys) do local v = storyCfgV2[k] - if mapLevel >= v.MapLevel and v.MapLevel > tmpMapLevel then + if mapLevel > v.MapLevel and v.MapLevel > tmpMapLevel then currStoryId = v.StoryId tmpMapLevel = v.MapLevel end @@ -1246,7 +1246,6 @@ function UIBattleView:OnBattleWin() self.HeadsBoxPart:Hide() self.StatisticsPart:Hide() self.rageBoxGo:SetActive(false) - self:RefreshStoryTaskInfo() end function UIBattleView:OnBattleFailed(killboss, isPlayRecord) diff --git a/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua b/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua index a053afec2..f4f192ac1 100644 --- a/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua +++ b/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua @@ -11,7 +11,7 @@ function UIPlayStoryCtr:SetData(data) local storyData = self.data local storyId = storyData.StoryId - local storyIntro = storyData.StoryIntro + local storyIntro = storyData.StoryIntro or {} local storyPerforms = ManagerContainer.CfgMgr:GetStoryPerformDataById(storyId) local cfgs = {}