Browse Source

首页,附近,同省,仅以此缩小范围

lizhen_gitee 1 year ago
parent
commit
6af608bbaf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/api/controller/Index.php

+ 2 - 0
application/api/controller/Index.php

@@ -37,6 +37,8 @@ class Index extends Api
 
         if(!empty($cityname) && $cityname != $this->auth->cityname){
             $where['user.cityname'] = $cityname;
+        }else{
+            $where['user.provincename'] = $this->auth->provincename;//仅以此缩小范围
         }
 
         //性别