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";