Explorar o código

推荐不要同城

lizhen_gitee hai 1 ano
pai
achega
65b351a0e2
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      application/api/controller/Eyemargin.php

+ 3 - 1
application/api/controller/Eyemargin.php

@@ -149,7 +149,9 @@ class Eyemargin extends Common
             $common_where['a.is_main'] = 1;
         }
         $common_where['a.status'] = 1;
-        $common_where['u.city'] = $this->auth->city;
+
+
+        !$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) {