Commit b17659a6c2bf5494b12021d9b62c34f74af1b0a1
Merge branch 'tr/bugfix-qa' into tr/publish/qa-out
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/models/RolePlugin.lua
@@ -1312,14 +1312,14 @@ function RolePlugin.bind(Role) | @@ -1312,14 +1312,14 @@ function RolePlugin.bind(Role) | ||
1312 | tType = tType or 1 | 1312 | tType = tType or 1 |
1313 | local info = TowerRankInfo[tType] | 1313 | local info = TowerRankInfo[tType] |
1314 | local list = {} | 1314 | local list = {} |
1315 | - local ids = redisproxy:zrevrange(Info.rank, 0 , 99) | 1315 | + local ids = redisproxy:zrevrange(info.rank, 0 , 99) |
1316 | local redret = {} | 1316 | local redret = {} |
1317 | if ids and next(ids) then | 1317 | if ids and next(ids) then |
1318 | redret = redisproxy:pipelining(function (red) | 1318 | redret = redisproxy:pipelining(function (red) |
1319 | for i = 1, #ids do | 1319 | for i = 1, #ids do |
1320 | local roleId = ids[i] | 1320 | local roleId = ids[i] |
1321 | table.insert(list, {roleId = tonumber(roleId)}) | 1321 | table.insert(list, {roleId = tonumber(roleId)}) |
1322 | - red:hget(Info.rankInfo, roleId) | 1322 | + red:hget(info.rankInfo, roleId) |
1323 | end | 1323 | end |
1324 | end) | 1324 | end) |
1325 | end | 1325 | end |
@@ -1328,7 +1328,7 @@ function RolePlugin.bind(Role) | @@ -1328,7 +1328,7 @@ function RolePlugin.bind(Role) | ||
1328 | player.format = nil | 1328 | player.format = nil |
1329 | list[i].player = player | 1329 | list[i].player = player |
1330 | end | 1330 | end |
1331 | - local rank = redisproxy:ZREVRANK(Info.rank, self:getProperty("id")) | 1331 | + local rank = redisproxy:ZREVRANK(info.rank, self:getProperty("id")) |
1332 | if not rank then | 1332 | if not rank then |
1333 | rank = -1 | 1333 | rank = -1 |
1334 | else | 1334 | else |