Browse Source

方便测试,临时调整

lizhen_gitee 3 years ago
parent
commit
97cc6d0ee8
1 changed files with 21 additions and 21 deletions
  1. 21 21
      application/api/controller/Usercenter.php

+ 21 - 21
application/api/controller/Usercenter.php

@@ -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);