郑晓宇 преди 6 години
родител
ревизия
96cb7f6231
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/Console/Commands/gamematch.php

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

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