소스 검색

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

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;//仅以此缩小范围
         }
 
         //性别