feat(防破解): 加速破解判定修改

This commit is contained in:
luying
2023-09-13 10:35:30 +08:00
parent 2089644290
commit a0e169d8b3
2 changed files with 2 additions and 2 deletions

View File

@@ -473,7 +473,7 @@ export class ComBattleHandler {
if(!roleSt.startActionTime || roleSt.startActionTime == 0) { // 第一次调用设置初始
roleSt.startActionTime = nowSeconds();
}
if ((roundTime > 0 && roundTime < 200) || (timegap - (nowSeconds() - roleSt.startActionTime) > 5)) { // 前后端误差超过5秒拦截
if ((roundTime > 0 && roundTime < 500) || (timegap - (nowSeconds() - roleSt.startActionTime) > 5)) { // 前后端误差超过5秒拦截
return resResult(STATUS.SUCCESS, {
isError: true,
timegap: nowSeconds() - roleSt.startActionTime