xiaogang 4 лет назад
Родитель
Сommit
7861805a16
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      app/Services/DynamicService.php

+ 5 - 5
app/Services/DynamicService.php

xqd
@@ -119,11 +119,11 @@ class DynamicService
             if(!$v['latitude']||!$v['longitude']){
                 //没有设置位置  取用户位置
                 $v_user = User::query()->where(['id'=>$v['user_id']])->first();
-                if(!$v_user->latitude || !$v_user->longitude){
-                    $distance = 0;
-                }else{
-                    $distance = GetDistance($lat,$lng,$v_user->latitude,$v_user->longitude);
-                }
+//                if(!$v_user->latitude || !$v_user->longitude){
+//                    $distance = 0;
+//                }else{
+//                    $distance = GetDistance($lat,$lng,$v_user->latitude,$v_user->longitude);
+//                }
             }else{
                 $distance = GetDistance($lat,$lng,$v['latitude'],$v['longitude']);
             }