From 5f44bcc3185d0218eae7fe2b2fe4e7d48092fc79 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Fri, 14 Feb 2020 11:54:02 +0800 Subject: [PATCH] bug --- src/models/RolePlugin.lua | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 44b8089..7683a35 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -740,6 +740,7 @@ function RolePlugin.bind(Role) end function Role:advChapterIsOpen(chapterId, layer) + layer = layer or 1 local exlayer = math.floor((layer - 1) / 10) * 10 + 1 if exlayer == 1 then --第一层判断前置 -- libgit2 0.21.2