Przeglądaj źródła

视频匹配等修改匹配条件

lizhen_gitee 3 lat temu
rodzic
commit
b710487bd0

+ 22 - 23
application/api/controller/Usercenter.php

@@ -398,15 +398,15 @@ class Usercenter extends Api
 
         //给出备选用户
         $map = [
-            'status' =>1,
-            'gender' => $this->auth->gender == 1 ? 0 : 1,
-//            'real_status' => 1,
-//            'idcard_status' => 1,
-            //打开语音开关的
-//            'open_match_audio' => 1,
-//            'id' => ['NOT IN',$my_follow]
+            'status' =>1,                                       //未封禁用户
+            'gender' => $this->auth->gender == 1 ? 0 : 1,       //异性
+            'is_online' => 0,                                   //不在语聊间的
+            'is_livebc' => 0,                                   //不在直播的
+            'real_status' => 1,                                 //真人认证
+            'idcard_status' => 1,                               //实名认证
+            '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,10);
@@ -465,15 +465,15 @@ class Usercenter extends Api
 
         //给出备选用户
         $map = [
-            'status' =>1,
-            'gender' => $this->auth->gender == 1 ? 0 : 1,
-//            'real_status' => 1,
-//            'idcard_status' => 1,
-            //打开视频开关的
-//            'open_match_video' => 1,
-//            'id' => ['NOT IN',$my_follow]
+            'status' =>1,                                       //未封禁用户
+            'gender' => $this->auth->gender == 1 ? 0 : 1,       //异性
+            'is_online' => 0,                                   //不在语聊间的
+            'is_livebc' => 0,                                   //不在直播的
+            'real_status' => 1,                                 //真人认证
+            'idcard_status' => 1,                               //实名认证
+            '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,10);
@@ -507,15 +507,14 @@ class Usercenter extends Api
 
         //给出备选用户
         $map = [
-            'status' =>1,
-            'gender' => $this->auth->gender == 1 ? 0 : 1,
-//            'real_status' => 1,
-//            'idcard_status' => 1,
+            'status' =>1,                                        //未封禁用户
+            'gender' => $this->auth->gender == 1 ? 0 : 1,        //异性
+            //'real_status' => 1,                                 //真人认证
+            //'idcard_status' => 1,                               //实名认证
             //打开聊天开关的
-//            'open_match_typing' => 1,
-//            'id' => ['NOT IN',$my_follow]
+            '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,100);

+ 1 - 1
application/config.php

@@ -304,7 +304,7 @@ return [
         'sdkappid' => '1400597821',
         'identifier' => 'administrator',
 
-        //回调秘钥
+        //trtc回调秘钥
         'callback_secret' => 'shezhihuidiaomiyao123456',
 //        'key' => '0e8cd35d0938514fb03d99f9ab14498b2615d6713f43436dfd31c21adc49b96a',
         'key' => '38766d1d2290bee1bec80d822f1b5a3ebae72ebb4359c3aae72c3dc429d3b6e2',

+ 1 - 1
application/extra/upload.php

@@ -9,7 +9,7 @@ return [
     /**
      * CDN地址
      */
-    'cdnurl'    => 'http://mita.com',
+    'cdnurl'    => 'https://meet-1251365327.cos.ap-beijing.myqcloud.com',
     /**
      * 文件保存格式
      */