Parcourir la source

修复清理数据

郑晓宇 il y a 6 ans
Parent
commit
10a50c1f0f
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

@@ -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{