|
@@ -27,7 +27,7 @@ class Buy extends Core
|
|
|
$lng = Dever::input('lng');
|
|
|
$lat = Dever::input('lat');
|
|
|
if ($lng && $lat) {
|
|
|
- $this->shop['distance'] = Dever::distance($lng, $lat, $shop['lng'], $shop['lat']);
|
|
|
+ $this->shop['distance'] = Dever::distance($lng, $lat, $this->shop['lng'], $this->shop['lat']);
|
|
|
}
|
|
|
}
|
|
|
|