郑晓宇 hace 6 años
padre
commit
b3e25af58a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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', 0);
+            $robots = Redis::lrange('online_robot_list', -1);
             if($robots){
                 foreach ($robots as $robot) {
                     $message['type'] = 'checkrobot';