fix bug
This commit is contained in:
parent
371f5f2893
commit
f18eb91d53
@ -169,7 +169,9 @@ function ModuleManager:getIsOpen(key, hideToast)
|
||||
elseif cfg.stage then -- 没有填等级字段就判断关卡
|
||||
local isOpen = DataManager.ChapterData:getMaxChapterId() >= cfg.stage
|
||||
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
|
||||
return isOpen
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user