郑晓宇 6 years ago
parent
commit
e61efcf6ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Console/Commands/robot.php

+ 1 - 0
app/Console/Commands/robot.php

@@ -132,6 +132,7 @@ class robot extends Command
                     if($room_id && $client_id){
                         $clients = Gateway::getClientIdListByGroup($room_id);
                         if(count($clients) < 2){
+                            $room_id = '';
                             echo "{$client_id} 成功重回队列\n";
                             //重新加入机器人队列
                             Redis::sadd('robot_list', $json_data->client_id);