|
@@ -82,8 +82,8 @@ class gamematch extends Command
|
|
|
echo "匹配成功: {$data['client_id']} 、 {$room['client_id']}\n";
|
|
|
|
|
|
//设置session
|
|
|
- Gateway::setSession($room['user_id'], ['room_id'=>$room['room_id']]);
|
|
|
- Gateway::setSession($data['user_id'], ['room_id'=>$room['room_id']]);
|
|
|
+ Gateway::setSession($room['client_id'], ['room_id'=>$room['room_id']]);
|
|
|
+ Gateway::setSession($data['client_id'], ['room_id'=>$room['room_id']]);
|
|
|
|
|
|
//发送题目
|
|
|
$question = Question::inRandomOrder()->select('question_id','title')->where("is_released",1)->first();
|