|
@@ -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();
|