xiaogang 4 éve
szülő
commit
1aa3164a00
1 módosított fájl, 3 hozzáadás és 0 törlés
  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";