xiaogang преди 4 години
родител
ревизия
b4ea88ab78
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      app/Services/DynamicService.php

+ 4 - 1
app/Services/DynamicService.php

xqd
@@ -78,7 +78,10 @@ class DynamicService
             $lat = $user->latitude;
             $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{
             $lat = "0";
             $lng = "0";