作者 何书鹏

起送价

@@ -400,7 +400,7 @@ class Api @@ -400,7 +400,7 @@ class Api
400 $distance = ceil(getDistance($lat1,$lng1,$lat2,$lng2)); 400 $distance = ceil(getDistance($lat1,$lng1,$lat2,$lng2));
401 if ($distance > $config['max_distance']) return false; 401 if ($distance > $config['max_distance']) return false;
402 // 商品起送金额 402 // 商品起送金额
403 - if($goods_total_price >= $config['goods_total_price']) return 0; 403 + if($goods_total_price >= $config['delivery_threshold']) return 0;
404 if ($distance > $config['first']){ 404 if ($distance > $config['first']){
405 $first_price = $config['first_fee']; 405 $first_price = $config['first_fee'];
406 $subdistance = $distance-$config['first']; 406 $subdistance = $distance-$config['first'];