创建房间bug修改
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user