Procházet zdrojové kódy

推荐不要同城

lizhen_gitee před 1 rokem
rodič
revize
65b351a0e2
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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) {