郑晓宇 il y a 6 ans
Parent
commit
5602c298f0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/Console/Commands/gamematch.php

+ 2 - 2
app/Console/Commands/gamematch.php

@@ -53,7 +53,7 @@ class gamematch extends Command
         while (1) {
             $user_id = Redis::lpop('match_list');
             if(!$user_id){
-                if($match_times > 5){
+                if($match_times > 2){
                     $match_times = 0;
                     //获取是否有房间未满人
                     $room_id = $this->get_free_room();
@@ -81,7 +81,7 @@ class gamematch extends Command
                     $message['type'] = 'gotomatch';
                     Gateway::sendToUid($user->user_id, json_encode($message));
                 }
-                sleep(3);
+                sleep(2);
                 $match_times++;
                 continue;
             }