Ver código fonte

性别不受限

lizhen_gitee 1 ano atrás
pai
commit
7e21258c3d
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      application/api/controller/Eyemargin.php

+ 2 - 2
application/api/controller/Eyemargin.php

@@ -154,14 +154,14 @@ class Eyemargin extends Common
         !$is_goddess && $common_where['u.city'] = $this->auth->city;
        // $is_goddess && $common_where['u.is_goddess'] = 1;
 //        $is_new && $common_where['u.createtime'] = ['gt',$time];
-        if ($this->auth->gender == 1) {
+        /*if ($this->auth->gender == 1) {
             //男只能看女视频
             $common_where['u.gender'] = 0;
 //            $common_where['u.wechat'] = ['neq', '']; //女生微信号必须审核通过
         } else {
             //女只能看男视频
             $common_where['u.gender'] = 1;
-        }
+        }*/
 
         $field = "a.*,u.avatar,u.city_name,u.district_name,u.nickname,u.is_goddess,u.is_auth,vipStatus(u.vip_duetime) as is_vip, 
         u.age,u.constellation,u.hobby_ids,u.profession,u.declaration,u.lng,u.lat,u.mobile,u.copy_mobile,u.wechat,u.gender,u.profession";