From 75e7709e71a6c8eb4a3baee2c9f593cb87386d45 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Tue, 21 Apr 2020 11:50:50 +0800 Subject: [PATCH] 领取bug --- src/actions/PvpAction.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/PvpAction.lua b/src/actions/PvpAction.lua index b66b25f..1bd8d37 100644 --- a/src/actions/PvpAction.lua +++ b/src/actions/PvpAction.lua @@ -817,7 +817,7 @@ function _M.highDivisionGiftRpc(agent, data) local role = agent.role local roleId = role:getProperty("id") - local pvpHGTime = self:getProperty("pvpHGTime") + local pvpHGTime = role:getProperty("pvpHGTime") if pvpHGTime == 0 then return end local score = role:unpackPvpScore(redisproxy:zscore(role:getPvpDBKey(RANK_PVP_HIGHT), roleId)) @@ -833,7 +833,7 @@ function _M.highDivisionGiftRpc(agent, data) local newTime, newReward = role:calculatePvpHGift(divisionId) if not next(newReward) then return end - self:updateProperties({ + role:updateProperties({ pvpHGTime = newTime, pvpHGift = {}, }) -- libgit2 0.21.2