dever 3 năm trước cách đây
mục cha
commit
f698ee3a80
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/shop/src/Buy.php

+ 1 - 1
app/shop/src/Buy.php

@@ -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']);
 		}
 	}