|
|
@@ -45,6 +45,7 @@ class freight
|
|
|
$cost = 8; //起步价
|
|
|
//距离计算
|
|
|
Yii::info("距离为:".$phpStatDistance);
|
|
|
+
|
|
|
$phpStatDistance = $phpStatDistance -2;
|
|
|
if($phpStatDistance > 0){
|
|
|
if ($phpStatDistance <=10){
|
|
|
@@ -66,7 +67,6 @@ class freight
|
|
|
|
|
|
//重量计算
|
|
|
Yii::info("重量为:".$weight);
|
|
|
- $weight = 5.5;
|
|
|
$weight = $weight -2;
|
|
|
if($weight > 0){
|
|
|
if ($weight <=10){
|