diff --git a/src/models/RoleBattle.lua b/src/models/RoleBattle.lua index 5182c43..1080868 100644 --- a/src/models/RoleBattle.lua +++ b/src/models/RoleBattle.lua @@ -145,9 +145,9 @@ function Role:checkBattleCheat(battleType, params) local status = checkOneCheat(clientInfo.selfAttr, selfTeamServer, clientInfo.enemyAttr, enemyServer) if not status then - local cheatCount = self:getProperty("cheatCount") - cheatCount = cheatCount + 1 - self:setProperty("cheatCount", cheatCount) + -- local cheatCount = self:getProperty("cheatCount") + -- cheatCount = cheatCount + 1 + -- self:setProperty("cheatCount", cheatCount) local result = {clientSelf = {}, serverSelf = {}} for k , v in pairs(clientInfo.selfAttr) do @@ -157,14 +157,14 @@ function Role:checkBattleCheat(battleType, params) result.serverSelf[tostring(k)] = v end result = json.encode(result) - self:mylog("cheat", {desc = battleType, int1 = cheatCount, text1 = result}) + self:mylog("cheat", {desc = battleType, int1 = 1, text1 = result}) - for _, v in ipairs(globalCsv.cheat_check) do - if cheatCount == v[1] then - self:setBan(v[2] / 86400, 5) - break - end - end + -- for _, v in ipairs(globalCsv.cheat_check) do + -- if cheatCount == v[1] then + -- self:setBan(v[2] / 86400, 5) + -- break + -- end + -- end end return status end -- libgit2 0.21.2