Sfoglia il codice sorgente

修复清理数据

郑晓宇 6 anni fa
parent
commit
10a50c1f0f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/Console/Commands/gamematch.php

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

@@ -74,8 +74,8 @@ class gamematch extends Command
                     "info" => ['room_id'=>$room['room_id'],"players"=>$players],
                 ];
                 //清理房间数据
-                Redis::set($room_id . '_info','');
-                Redis::set($room_id . '_questions','');
+                Redis::set($room['room_id'] . '_info','');
+                Redis::set($room['room_id'] . '_questions','');
                 Gateway::sendToGroup($room['room_id'], json_encode($message));
                 echo "匹配成功: {$data['client_id']} 、 {$room['client_id']}\n";
             }else{