Commit 6e76008ac8ed50a8014ccdc472aa4c64d5707b71

Authored by liguanghui
1 parent 664e0e07

bug修复:电波塔排行榜协议报错

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