diff --git a/lua/app/ui/main_city/component/main_comp.lua b/lua/app/ui/main_city/component/main_comp.lua index 16a12329..db1172a7 100644 --- a/lua/app/ui/main_city/component/main_comp.lua +++ b/lua/app/ui/main_city/component/main_comp.lua @@ -99,8 +99,8 @@ function MainComp:refreshChapter(force) local mysteryBoxIcon = self.uiMap["main_comp.chapter.img.mystery_box_icon"] mysteryBoxIcon:setVisible(mysteryBoxCount > 0) if mysteryBoxCount > 0 then - local remainCount = math.max(mysteryBoxCount - DataManager.ChapterData:getChapterMysteryBoxGotCount(chapterId), 0) - self.uiMap["main_comp.chapter.img.mystery_box_icon.desc"]:setText(remainCount .. "/" .. mysteryBoxCount) + local gotCount = DataManager.ChapterData:getChapterMysteryBoxGotCount(chapterId) + self.uiMap["main_comp.chapter.img.mystery_box_icon.desc"]:setText(gotCount .. "/" .. mysteryBoxCount) end local rewardChapterId = DataManager.ChapterData:getIsHaveRewardsMinId()