Commit f82b9dc24b2960358b303e5c9223666e59b3b598
1 parent
b2de779a
删除自动封号
Showing
1 changed file
with
10 additions
and
10 deletions
Show diff stats
src/models/RoleBattle.lua
... | ... | @@ -145,9 +145,9 @@ function Role:checkBattleCheat(battleType, params) |
145 | 145 | |
146 | 146 | local status = checkOneCheat(clientInfo.selfAttr, selfTeamServer, clientInfo.enemyAttr, enemyServer) |
147 | 147 | if not status then |
148 | - local cheatCount = self:getProperty("cheatCount") | |
149 | - cheatCount = cheatCount + 1 | |
150 | - self:setProperty("cheatCount", cheatCount) | |
148 | + -- local cheatCount = self:getProperty("cheatCount") | |
149 | + -- cheatCount = cheatCount + 1 | |
150 | + -- self:setProperty("cheatCount", cheatCount) | |
151 | 151 | |
152 | 152 | local result = {clientSelf = {}, serverSelf = {}} |
153 | 153 | for k , v in pairs(clientInfo.selfAttr) do |
... | ... | @@ -157,14 +157,14 @@ function Role:checkBattleCheat(battleType, params) |
157 | 157 | result.serverSelf[tostring(k)] = v |
158 | 158 | end |
159 | 159 | result = json.encode(result) |
160 | - self:mylog("cheat", {desc = battleType, int1 = cheatCount, text1 = result}) | |
160 | + self:mylog("cheat", {desc = battleType, int1 = 1, text1 = result}) | |
161 | 161 | |
162 | - for _, v in ipairs(globalCsv.cheat_check) do | |
163 | - if cheatCount == v[1] then | |
164 | - self:setBan(v[2] / 86400, 5) | |
165 | - break | |
166 | - end | |
167 | - end | |
162 | + -- for _, v in ipairs(globalCsv.cheat_check) do | |
163 | + -- if cheatCount == v[1] then | |
164 | + -- self:setBan(v[2] / 86400, 5) | |
165 | + -- break | |
166 | + -- end | |
167 | + -- end | |
168 | 168 | end |
169 | 169 | return status |
170 | 170 | end | ... | ... |