|
|
@@ -644,7 +644,7 @@ class PurchaseController extends BaseController
|
|
|
$startPrice = $shCurrentConfig['startPrice'] ?? 0;
|
|
|
$perKmPrice = $shCurrentConfig['perKmPrice'] ?? 0;//超出起步,每公里加收金额
|
|
|
$changeRate = $shCurrentConfig['changeRate'] ?? 0;//负值时为降价百分比,正值时为涨价百分比
|
|
|
- if ($startKm <= 0 || $perKmPrice <= 0) {
|
|
|
+ if ($startKm <= 0 || $startPrice <= 0 || $perKmPrice <= 0) {
|
|
|
noticeUtil::push("算运费失败,请更换配送方式 startKm {$startKm} startPrice {$startPrice} perKmPrice {$perKmPrice}", '15280215347');
|
|
|
util::fail('算运费失败,请更换配送方式');
|
|
|
}
|