Commit b17659a6c2bf5494b12021d9b62c34f74af1b0a1

Authored by 熊润斐
2 parents 3cf0ef0e 895ed2a9

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 1312 tType = tType or 1
1313 1313 local info = TowerRankInfo[tType]
1314 1314 local list = {}
1315   - local ids = redisproxy:zrevrange(Info.rank, 0 , 99)
  1315 + local ids = redisproxy:zrevrange(info.rank, 0 , 99)
1316 1316 local redret = {}
1317 1317 if ids and next(ids) then
1318 1318 redret = redisproxy:pipelining(function (red)
1319 1319 for i = 1, #ids do
1320 1320 local roleId = ids[i]
1321 1321 table.insert(list, {roleId = tonumber(roleId)})
1322   - red:hget(Info.rankInfo, roleId)
  1322 + red:hget(info.rankInfo, roleId)
1323 1323 end
1324 1324 end)
1325 1325 end
... ... @@ -1328,7 +1328,7 @@ function RolePlugin.bind(Role)
1328 1328 player.format = nil
1329 1329 list[i].player = player
1330 1330 end
1331   - local rank = redisproxy:ZREVRANK(Info.rank, self:getProperty("id"))
  1331 + local rank = redisproxy:ZREVRANK(info.rank, self:getProperty("id"))
1332 1332 if not rank then
1333 1333 rank = -1
1334 1334 else
... ...