创建房间bug修改

This commit is contained in:
2025-09-23 14:49:15 +08:00
parent 09e5802e2b
commit 0728b51c8e
2 changed files with 2 additions and 2 deletions

View File

@@ -1241,7 +1241,7 @@ class Room extends adminApi
if($apply_status!==''){ if($apply_status!==''){
$where['apply_status'] = $apply_status; $where['apply_status'] = $apply_status;
}else{ }else{
$where['apply_status'] = ['<>',2]; $where['apply_status'] = 1;
} }
$count = db::name($this->table)->where($where)->count(); $count = db::name($this->table)->where($where)->count();

View File

@@ -272,7 +272,7 @@ class Room extends Model
$roomInfo = db::name('vs_room') $roomInfo = db::name('vs_room')
->field('id as room_id,room_number,user_id,room_name,room_cover,apply_status,type_id,room_status,label_id') ->field('id as room_id,room_number,user_id,room_name,room_cover,apply_status,type_id,room_status,label_id')
->where('user_id' , $uid) ->where('user_id' , $uid)
->where(['type_id' => ['<>',6],'room_status' =>1]) ->where(['type_id' => ['<>',6],'room_status' =>1,'apply_status' => 2])
->page($page, $page_limit) ->page($page, $page_limit)
->select(); ->select();
} }