diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index b20c450..0ea5787 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1312,14 +1312,14 @@ function RolePlugin.bind(Role) tType = tType or 1 local info = TowerRankInfo[tType] local list = {} - local ids = redisproxy:zrevrange(Info.rank, 0 , 99) + local ids = redisproxy:zrevrange(info.rank, 0 , 99) local redret = {} if ids and next(ids) then redret = redisproxy:pipelining(function (red) for i = 1, #ids do local roleId = ids[i] table.insert(list, {roleId = tonumber(roleId)}) - red:hget(Info.rankInfo, roleId) + red:hget(info.rankInfo, roleId) end end) end @@ -1328,7 +1328,7 @@ function RolePlugin.bind(Role) player.format = nil list[i].player = player end - local rank = redisproxy:ZREVRANK(Info.rank, self:getProperty("id")) + local rank = redisproxy:ZREVRANK(info.rank, self:getProperty("id")) if not rank then rank = -1 else -- libgit2 0.21.2