xiaogang 4 years ago
parent
commit
b4ea88ab78
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/Services/DynamicService.php

+ 4 - 1
app/Services/DynamicService.php

@@ -78,7 +78,10 @@ class DynamicService
             $lat = $user->latitude;
             $lat = $user->latitude;
             $lng = $user->longitude;
             $lng = $user->longitude;
 
 
-            $where['look_type'] = $user->sex==1?2:1;
+            if($where['user_id']==0){
+                $where['look_type'] = $user->sex==1?2:1;
+            }
+
         }else{
         }else{
             $lat = "0";
             $lat = "0";
             $lng = "0";
             $lng = "0";