Ver Fonte

fix: 计数

wanggangzero há 5 meses atrás
pai
commit
f6a341c0fa
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Gameserver/App/process/FightProc.php

+ 1 - 1
Gameserver/App/process/FightProc.php

@@ -270,7 +270,7 @@ class FightProc {
 //            $max = glc()->sweepMaxNum;
 //            my_Assert(ctx()->gates->fightSweepNum < $max, ErrCode::gate_SweepMaxNum_limit);
 //        }
-        if (ctx()->gates->fightSweepNum <= glc()->sweepMaxNum) {
+        if (ctx()->gates->fightSweepNum < glc()->sweepMaxNum) {
             ctx()->gates->fightSweepTs = now();                                 # 前三次无冷却
         } else {
             ctx()->gates->fightSweepTs = now(60);                               # 下次扫荡时间戳(广告时需要间隔)