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

+ 3 - 0
app/Services/DynamicService.php

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