Commit 45b97daaf5bc7aaf58e9767577935e5f3dc49f60
1 parent
4b648246
删除自动封号
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,9 +145,9 @@ function Role:checkBattleCheat(battleType, params) | ||
145 | 145 | ||
146 | local status = checkOneCheat(clientInfo.selfAttr, selfTeamServer, clientInfo.enemyAttr, enemyServer) | 146 | local status = checkOneCheat(clientInfo.selfAttr, selfTeamServer, clientInfo.enemyAttr, enemyServer) |
147 | if not status then | 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 | 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) do |
@@ -157,14 +157,14 @@ function Role:checkBattleCheat(battleType, params) | @@ -157,14 +157,14 @@ function Role:checkBattleCheat(battleType, params) | ||
157 | result.serverSelf[tostring(k)] = v | 157 | result.serverSelf[tostring(k)] = v |
158 | end | 158 | end |
159 | result = json.encode(result) | 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 | end | 168 | end |
169 | return status | 169 | return status |
170 | end | 170 | end |