This commit is contained in:
puxuan 2025-09-08 20:09:20 +08:00
parent 371f5f2893
commit f18eb91d53

View File

@ -169,7 +169,9 @@ function ModuleManager:getIsOpen(key, hideToast)
elseif cfg.stage then -- 没有填等级字段就判断关卡 elseif cfg.stage then -- 没有填等级字段就判断关卡
local isOpen = DataManager.ChapterData:getMaxChapterId() >= cfg.stage local isOpen = DataManager.ChapterData:getMaxChapterId() >= cfg.stage
if not hideToast and not isOpen then if not hideToast and not isOpen then
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.FUNC_OPEN_STAGE, cfg.stage)) local page = DataManager.ChapterData:getChapterPage(cfg.stage)
local stage = DataManager.ChapterData:getChapterStage(cfg.stage)
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.FUNC_OPEN_STAGE, page .. "-" .. stage))
end end
return isOpen return isOpen
end end