关系分开
This commit is contained in:
@@ -330,11 +330,15 @@ class Room extends adminApi
|
||||
$page = input('page', 1);
|
||||
$page_limit = input('page_limit', 30);
|
||||
$search_name = input('search_name', '');
|
||||
$search_type = input('search_type', '');
|
||||
$where=[];
|
||||
//标签名称
|
||||
if($search_name!==''){
|
||||
$where['name'] = ['like', '%'.$search_name.'%'];
|
||||
}
|
||||
if($search_type!==''){
|
||||
$where['type'] = $search_type;
|
||||
}
|
||||
$where['delete_time'] = 0;
|
||||
$count = db::name($this->relation)->where($where)->count();
|
||||
$lists = db::name($this->relation)->where($where)->page($page, $page_limit)->select();
|
||||
|
||||
@@ -16,7 +16,7 @@ class Room extends Model
|
||||
|
||||
protected $name = 'vs_room';
|
||||
|
||||
public $relation_type = [1=>'真爱拍',2=>'友情拍'];
|
||||
public $relation_type = [1=>'真爱拍',2=>'友情拍',3=>'互娱房'];
|
||||
public $room_status = [1=>'正常',2=>'封禁',3=>'关闭'];
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class RoomAuction extends BaseCom
|
||||
//房间关系列表
|
||||
public function room_relation_list()
|
||||
{
|
||||
$type_id = input('type');//1真爱拍 2 亲密拍
|
||||
$type_id = input('type');//1真爱拍 2 亲密拍 3互娱
|
||||
$reslut = model('RoomAuction')->room_relation_list($type_id);
|
||||
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user