|
@@ -388,16 +388,16 @@ class Usercenter extends Api
|
|
|
|
|
|
|
|
|
//给出备选用户
|
|
|
- /*$map = [
|
|
|
+ $map = [
|
|
|
'status' =>1,
|
|
|
'gender' => $this->auth->gender == 1 ? 0 : 1,
|
|
|
- 'real_status' => 1,
|
|
|
- 'idcard_status' => 1,
|
|
|
+// 'real_status' => 1,
|
|
|
+// 'idcard_status' => 1,
|
|
|
//打开语音开关的
|
|
|
- 'open_match_audio' => 1,
|
|
|
- 'id' => ['NOT IN',$my_follow]
|
|
|
- ];*/
|
|
|
- $map = [];
|
|
|
+// 'open_match_audio' => 1,
|
|
|
+// 'id' => ['NOT IN',$my_follow]
|
|
|
+ ];
|
|
|
+ //$map = [];
|
|
|
|
|
|
$lists = Db::name('user')->field('id,cityname,status,gender,real_status,tag_ids')->where($map)->order('logintime desc')->page($this->page,100)->select();
|
|
|
$lists = $this->fliter_user($lists);
|
|
@@ -446,16 +446,16 @@ class Usercenter extends Api
|
|
|
|
|
|
|
|
|
//给出备选用户
|
|
|
- /*$map = [
|
|
|
+ $map = [
|
|
|
'status' =>1,
|
|
|
'gender' => $this->auth->gender == 1 ? 0 : 1,
|
|
|
- 'real_status' => 1,
|
|
|
- 'idcard_status' => 1,
|
|
|
+// 'real_status' => 1,
|
|
|
+// 'idcard_status' => 1,
|
|
|
//打开视频开关的
|
|
|
- 'open_match_video' => 1,
|
|
|
- 'id' => ['NOT IN',$my_follow]
|
|
|
- ];*/
|
|
|
- $map = [];
|
|
|
+// 'open_match_video' => 1,
|
|
|
+// 'id' => ['NOT IN',$my_follow]
|
|
|
+ ];
|
|
|
+// $map = [];
|
|
|
|
|
|
$lists = Db::name('user')->field('id,cityname,status,gender,real_status,tag_ids')->where($map)->order('logintime desc')->page($this->page,100)->select();
|
|
|
$lists = $this->fliter_user($lists);
|
|
@@ -479,16 +479,16 @@ class Usercenter extends Api
|
|
|
//dump($my_follow);exit;
|
|
|
|
|
|
//给出备选用户
|
|
|
- /*$map = [
|
|
|
+ $map = [
|
|
|
'status' =>1,
|
|
|
'gender' => $this->auth->gender == 1 ? 0 : 1,
|
|
|
- 'real_status' => 1,
|
|
|
- 'idcard_status' => 1,
|
|
|
+// 'real_status' => 1,
|
|
|
+// 'idcard_status' => 1,
|
|
|
//打开聊天开关的
|
|
|
- 'open_match_typing' => 1,
|
|
|
- 'id' => ['NOT IN',$my_follow]
|
|
|
- ];*/
|
|
|
- $map = [];
|
|
|
+// 'open_match_typing' => 1,
|
|
|
+// 'id' => ['NOT IN',$my_follow]
|
|
|
+ ];
|
|
|
+// $map = [];
|
|
|
|
|
|
$lists = Db::name('user')->field('id,cityname,status,gender,real_status,tag_ids')->where($map)->order('logintime desc')->page($this->page,100)->select();
|
|
|
$lists = $this->fliter_user($lists,10);
|