首页房间过滤条件
This commit is contained in:
@@ -197,7 +197,7 @@ class Room extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
$list = db::name('vs_room')->field('id as room_id,room_number,user_id,room_name,room_cover,room_password,today_hot_value as hot_value,label_id,is_show_room')
|
$list = db::name('vs_room')->field('id as room_id,room_number,user_id,room_name,room_cover,room_password,today_hot_value as hot_value,label_id,is_show_room')
|
||||||
->where($map)->order('hot_value desc, id desc')->page($page, $page_limit)->select();
|
->where($map)->order('hot_value desc, id asc')->page($page, $page_limit)->select();
|
||||||
// var_dump($list);
|
// var_dump($list);
|
||||||
foreach ($list as $k => &$v){
|
foreach ($list as $k => &$v){
|
||||||
// if($v['is_show_room'] == 2){ //是否显示房间 1是2否
|
// if($v['is_show_room'] == 2){ //是否显示房间 1是2否
|
||||||
@@ -214,7 +214,7 @@ class Room extends Model
|
|||||||
$v['label_icon'] = db::name('vs_room_label')->where('id', $v['label_id'])->value('label_icon');
|
$v['label_icon'] = db::name('vs_room_label')->where('id', $v['label_id'])->value('label_icon');
|
||||||
}
|
}
|
||||||
//$list 不为空 数组重组
|
//$list 不为空 数组重组
|
||||||
$list = array_values((array)$list);
|
// $list = array_values((array)$list);
|
||||||
//版本号
|
//版本号
|
||||||
$app_version = request()->header('App-Version');
|
$app_version = request()->header('App-Version');
|
||||||
$system = request()->header('system');
|
$system = request()->header('system');
|
||||||
|
|||||||
Reference in New Issue
Block a user