|
@@ -23,7 +23,10 @@ class Index extends Api
|
|
|
//附近
|
|
|
//是vip,且开启了隐身的,不能在内
|
|
|
public function fujin(){
|
|
|
- $cityname = input('cityname',$this->auth->cityname);
|
|
|
+ $cityname = input('cityname','');
|
|
|
+ if(empty($cityname)){
|
|
|
+ $cityname = $this->auth->cityname;
|
|
|
+ }
|
|
|
|
|
|
$where = [
|
|
|
'user.id' => ['neq',$this->auth->id],
|
|
@@ -32,6 +35,7 @@ class Index extends Api
|
|
|
'user.cityname' => $cityname,
|
|
|
'power.yinshen' => 0,
|
|
|
];
|
|
|
+
|
|
|
//性别
|
|
|
$gender = input('gender','all');
|
|
|
if($gender != 'all'){
|