ソースを参照

视频匹配和语音匹配改进

lizhen_gitee 2 年 前
コミット
149757f2ac
1 ファイル変更8 行追加6 行削除
  1. 8 6
      application/api/controller/Usercenter.php

+ 8 - 6
application/api/controller/Usercenter.php

@@ -649,7 +649,7 @@ class Usercenter extends Api
     public function getaudiouser(){
 
         //判断资格
-        $start = strtotime(date('Y-m-d'));
+        /*$start = strtotime(date('Y-m-d'));
         $end   = $start + 86399;
 
         $map = [
@@ -658,8 +658,8 @@ class Usercenter extends Api
             'price' => 0,
         ];
 
-        $check = Db::name('user_match_audio_log')->where($map)->find();
-        //$check = true;
+        $check = Db::name('user_match_audio_log')->where($map)->find();*/
+        $check = true;
 
         //已经用掉免费的了,判断金额
         if($check){
@@ -684,6 +684,7 @@ class Usercenter extends Api
             'gender' => $this->auth->gender == 1 ? 0 : 1,       //异性
             'is_online' => 0,                                   //不在语聊间的
             'is_livebc' => 0,                                   //不在直播的
+            'is_active' => 1,                                   //活跃的
             'real_status' => 1,                                 //真人认证
             'idcard_status' => 1,                               //实名认证
             'open_match_audio' => 1,                            //打开语聊开关
@@ -716,7 +717,7 @@ class Usercenter extends Api
     public function getvideouser(){
 
         //判断资格
-        $start = strtotime(date('Y-m-d'));
+        /*$start = strtotime(date('Y-m-d'));
         $end   = $start + 86399;
 
         $map = [
@@ -725,8 +726,8 @@ class Usercenter extends Api
             'price' => 0,
         ];
 
-        $check = Db::name('user_match_video_log')->where($map)->find();
-        //$check = true;
+        $check = Db::name('user_match_video_log')->where($map)->find();*/
+        $check = true;
 
         //已经用掉免费的了,判断金额
         if($check){
@@ -751,6 +752,7 @@ class Usercenter extends Api
             'gender' => $this->auth->gender == 1 ? 0 : 1,       //异性
             'is_online' => 0,                                   //不在语聊间的
             'is_livebc' => 0,                                   //不在直播的
+            'is_active' => 1,                                   //活跃的
             'real_status' => 1,                                 //真人认证
             'idcard_status' => 1,                               //实名认证
             'open_match_video' => 1,                            //打开视频开关的