| xqd
@@ -244,18 +244,18 @@ class DynamicService
|
|
|
}else{
|
|
|
|
|
|
$distance = GetDistance($lat,$lng,$v_user['latitude'],$v_user['longitude']);
|
|
|
- dd($lat,$lng,1,$v_user['latitude'],$v_user['longitude'],$distance);
|
|
|
+ // dd($lat,$lng,1,$v_user['latitude'],$v_user['longitude'],$distance);
|
|
|
}
|
|
|
}else{
|
|
|
- dd($lat,$lng,2);
|
|
|
+ // dd($lat,$lng,2);
|
|
|
$distance = GetDistance($lat,$lng,$v['latitude'],$v['longitude']);
|
|
|
}
|
|
|
|
|
|
- if($distance>=1){
|
|
|
- $distance = round($distance);
|
|
|
- }else{
|
|
|
- $distance = round($distance*1000);
|
|
|
- }
|
|
|
+// if($distance>=1){
|
|
|
+// $distance = round($distance);
|
|
|
+// }else{
|
|
|
+// $distance = round($distance*1000);
|
|
|
+// }
|
|
|
|
|
|
$dynamic['data'][$k]['distance'] = $distance;
|
|
|
|