@@ -136,9 +136,9 @@ class robot extends Command
Gateway::leaveGroup($client_id, $room_id);
//重新加入机器人队列
Redis::sadd('robot_list', $client_id);
- $room_id = '';
echo "{$client_id} 离开房间:{$room_id}\n";
echo "{$client_id} 成功重回队列\n";
+ $room_id = '';
}
@@ -113,6 +113,7 @@ return [
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
+ 'read_write_timeout' => 0,//new
],