Commit 50ecb4c1c79a7b4897c7e8ff48de47236fac6204

Authored by zhouhaihai
1 parent f2fa488d

增加return 判断

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/actions/TowerAction.lua
@@ -76,9 +76,9 @@ function _M.endBattleRpc(agent, data) @@ -76,9 +76,9 @@ function _M.endBattleRpc(agent, data)
76 local passTime = msg.passTime 76 local passTime = msg.passTime
77 77
78 local towerInfo = role:getProperty("towerInfo") 78 local towerInfo = role:getProperty("towerInfo")
79 - if towerInfo.l ~= id or not towerInfo.k or towerInfo.k ~= key then return end 79 + if towerInfo.l ~= id or not towerInfo.k or towerInfo.k ~= key then return 1 end
80 local curTower = csvdb["tower_battleCsv"][id] 80 local curTower = csvdb["tower_battleCsv"][id]
81 - if not curTower then return end 81 + if not curTower then return 2 end
82 82
83 local curCount, nextTime = getUpdateTime(towerInfo.c, towerInfo.t) 83 local curCount, nextTime = getUpdateTime(towerInfo.c, towerInfo.t)
84 84