dever 3 年之前
父节点
当前提交
f698ee3a80
共有 1 个文件被更改,包括 1 次插入1 次删除
  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']);
 		}
 	}