郑晓宇 6 年 前
コミット
5dbf4330f0
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      app/Console/Commands/gamematch.php

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

@@ -86,7 +86,7 @@ class gamematch extends Command
                 $options = Option::select('option_id','title')->where("question_id",$question->question_id)->get($question->question_id);
                 $info['question'] = $question; 
                 $info['options'] = $options; 
-                $info['questions_count'] = 1; 
+                $info['questions_count'] = 1;
                 $questions[] = $info;
                 Redis::set($room['room_id'] . '_questions', json_encode($questions));
                 $message = [
@@ -95,7 +95,7 @@ class gamematch extends Command
                     "info" => $info,
                 ];
                 Gateway::sendToGroup($room['room_id'], json_encode($message));
-                echo "发送题目成功: $room['room_id']\n";
+                echo "发送题目成功: {$room['room_id']}\n";
             }else{
                 //新建一个房间
                 $room_id = $this->get_room_id();