进入房间状态

This commit is contained in:
2025-09-24 15:14:58 +08:00
parent eed29ecb0f
commit 38b8af4e25

View File

@@ -530,7 +530,6 @@ class Room extends Model
//进入房间
public function join_room($user_id, $room_id, $password) {
// $room = db::name('vs_room')->where(['id' => $room_id,'apply_status' => 2])->find();
$room = db::name('vs_room')->where(['id' => $room_id,'apply_status' => ['in',[1,2]]])->find();
if (!isset($room)) {
return ['code' => 0, 'msg' => '房间不存在', 'data' => ''];