Commit 2471ce93299e24197a84d01e40ed37433cd05963

Authored by zhouhaihai
1 parent bd4fb541

bug

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/adv/Adv.lua
... ... @@ -716,7 +716,7 @@ function Adv:over(success, rewardRatio, overType)
716 716 end
717 717  
718 718 local roleId = self.owner:getProperty("id")
719   - local oldMaxScore = tonum(redisproxy:zscore(role:getAdvRankKey(), roleId))
  719 + local oldMaxScore = tonum(redisproxy:zscore(self.owner:getAdvRankKey(), roleId))
720 720 if score > oldMaxScore then
721 721 local team = self.owner:getProperty("advTeam")
722 722 local curInfo = {
... ... @@ -728,7 +728,7 @@ function Adv:over(success, rewardRatio, overType)
728 728 format = self.owner:getTeamHerosInfo(team.heros),
729 729 }
730 730 redisproxy:pipelining(function (red)
731   - red:zadd(role:getAdvRankKey(), score, roleId) --更新分数
  731 + red:zadd(self.owner:getAdvRankKey(), score, roleId) --更新分数
732 732 red:hset(RANK_ADV_INFO, roleId, MsgPack.pack(curInfo))
733 733 end)
734 734 end
... ...