diff --git a/src/actions/PvpAction.lua b/src/actions/PvpAction.lua index 95ce565..91bedde 100644 --- a/src/actions/PvpAction.lua +++ b/src/actions/PvpAction.lua @@ -269,7 +269,7 @@ function _M.endBattleRpc(agent, data) video = video, sdelta = myScore - oldmyScore, })) - red:trim(dbKey, 0, 9) + red:ltrim(dbKey, 0, 9) -- 对方加入战斗记录 if match.t == 1 then dbKey = string.format(RECORD_PVP_COMMON, match.id) @@ -281,7 +281,7 @@ function _M.endBattleRpc(agent, data) video = video, sdelta = matchScore - oldMatchScore, })) - red:trim(dbKey, 0, 9) + red:ltrim(dbKey, 0, 9) end end) @@ -346,6 +346,7 @@ end function _M.recordListRpc(agent, data) local role = agent.role local roleId = role:getProperty("id") + local msg = MsgPack.unpack(data) local ptype = msg.ptype or 1 local recordList = {} -- libgit2 0.21.2