Browse Source

Update AutoBanUserJob.php

aiden3434 7 years ago
parent
commit
456c100745
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/AutoBanUserJob.php

+ 1 - 1
app/Console/Commands/AutoBanUserJob.php

@@ -25,7 +25,7 @@ class AutoBanUserJob extends Command
 
         // 封禁24小时内流量异常账号
         if ($config['is_traffic_ban']) {
-            $userList = User::query()->where('status', '>=', 0)->where('enable', 1)->get();
+            $userList = User::query()->where('status', '>=', 0)->where('enable', 1)->where('ban_time', '>=', 0)->get();
             if (!$userList->isEmpty()) {
                 foreach ($userList as $user) {
                     $time = date('Y-m-d H:i:s', time() - 24 * 60 * 60);