xiaogang 4 년 전
부모
커밋
1aa3164a00
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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";