Bläddra i källkod

推荐不要同城

lizhen_gitee 1 år sedan
förälder
incheckning
65b351a0e2
1 ändrade filer med 3 tillägg och 1 borttagningar
  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) {