Commit 2471ce93299e24197a84d01e40ed37433cd05963

Authored by zhouhaihai
1 parent bd4fb541

bug

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