|
|
@@ -874,9 +874,9 @@ class OrderController extends BaseController
|
|
|
$post['book'] = $post['book'] ?? 0;
|
|
|
|
|
|
$sendType = $post['sendType'] ?? 0;
|
|
|
- $sendCost = 0;
|
|
|
- if ($sendType == dict::getDict('sendType', 'thirdSend')) {
|
|
|
- $sendCost = isset($post['sendCost']) && $post['sendCost'] > 0 ? $post['sendCost'] : 0;
|
|
|
+ $sendCost = isset($post['sendCost']) && $post['sendCost'] > 0 ? $post['sendCost'] : 0;
|
|
|
+ if ($sendType != dict::getDict('sendType', 'thirdSend') && $sendCost > 0) {
|
|
|
+ util::fail('填了运费,请选择跑腿配送');
|
|
|
}
|
|
|
$post['sendCost'] = $sendCost;
|
|
|
//打包费
|