作者 何书鹏

bug修改

... ... @@ -397,10 +397,10 @@ class Api
protected function distancePrice($lat1,$lng1,$lat2,$lng2,$goods_total_price=0)
{
$config = Db::name('litestore_rider_rule')->find();
// 商品起送金额
if($goods_total_price >= $config['goods_total_price']) return 0;
$distance = ceil(getDistance($lat1,$lng1,$lat2,$lng2));
if ($distance > $config['max_distance']) return false;
// 商品起送金额
if($goods_total_price >= $config['goods_total_price']) return 0;
if ($distance > $config['first']){
$first_price = $config['first_fee'];
$subdistance = $distance-$config['first'];
... ...