郑晓宇 před 6 roky
rodič
revize
f71d9b5f04
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Console/Commands/recylerobots.php

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

@@ -43,7 +43,7 @@ class recylerobots extends Command
         Gateway::$registerAddress = '127.0.0.1:1238';
         while(1){
             //获取所有机器人
-            $robots = Redis::lrange('online_robot_list', -1);
+            $robots = Redis::lrange('online_robot_list', 0, -1);
             if($robots){
                 foreach ($robots as $robot) {
                     $message['type'] = 'checkrobot';