@@ -65,12 +65,12 @@ class freight
//重量计算
Yii::info("重量为:".$weight);
+ $weight = 5;
$weight = $weight -2;
if($weight > 0){
if ($weight <=10){
//每增1 kg 加2
- $diff = ceil(($weight - 2));
- $diffCost = $diff*2;
+ $diffCost = $weight*2;
$cost += $diffCost;
}else{