shish 6 лет назад
Родитель
Сommit
eef03527ec
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/mall/controllers/OrderController.php

+ 2 - 2
app/mall/controllers/OrderController.php

@@ -67,8 +67,8 @@ class OrderController extends BaseController
 		$post['sendDistance'] = isset($post['sendDistance']) ? $post['sendDistance'] : 0;
 		$sendCost = 0;
 		if ($freightType == 0) {
-			$lat = $post['receiveLat'];//收货人纬度
-			$lng = $post['receiveLong'];//收货人经度
+			$lat = $post['latitude'];//收货人纬度
+			$lng = $post['longitude'];//收货人经度
 			$respond = ExpressService::getUserDistance($lng, $lat, $defaultShopId, $this->merchantExtend);
 			$sendCost = isset($respond['fee']) ? $respond['fee'] : 0;
 		}