浏览代码

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

lizhen_gitee 1 年之前
父节点
当前提交
6af608bbaf
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;//仅以此缩小范围
         }
 
         //性别