xiaogang 4 năm trước cách đây
mục cha
commit
b4ea88ab78
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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";