Commit 4083e99ab10f41cc207d280251ceef166ccc979c
1 parent
6a59245c
可能的报错点
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/actions/ActivityAction.lua
@@ -587,7 +587,7 @@ function _M.endBattleRpc(agent, data) | @@ -587,7 +587,7 @@ function _M.endBattleRpc(agent, data) | ||
587 | info = msg.info, | 587 | info = msg.info, |
588 | format = role.__actBattleCache.format | 588 | format = role.__actBattleCache.format |
589 | }) then | 589 | }) then |
590 | - SendPacket(actionCodes.Hang_endBonusBattleRpc, MsgPack.pack({errorCode = 1})) | 590 | + SendPacket(actionCodes.Activity_endBattleRpc, MsgPack.pack({errorCode = 1})) |
591 | return true | 591 | return true |
592 | end | 592 | end |
593 | role.__actBattleCache = nil | 593 | role.__actBattleCache = nil |
src/models/RoleBattle.lua
@@ -150,7 +150,7 @@ function Role:checkBattleCheat(battleType, params) | @@ -150,7 +150,7 @@ function Role:checkBattleCheat(battleType, params) | ||
150 | -- self:setProperty("cheatCount", cheatCount) | 150 | -- self:setProperty("cheatCount", cheatCount) |
151 | 151 | ||
152 | local result = {clientSelf = {}, serverSelf = {}} | 152 | local result = {clientSelf = {}, serverSelf = {}} |
153 | - for k , v in pairs(clientInfo.selfAttr) do | 153 | + for k , v in pairs(clientInfo.selfAttr or {}) do |
154 | result.clientSelf[tostring(k)] = v | 154 | result.clientSelf[tostring(k)] = v |
155 | end | 155 | end |
156 | for k , v in pairs(selfTeamServer) do | 156 | for k , v in pairs(selfTeamServer) do |