|
|
@@ -106,10 +106,10 @@ class PurchaseController extends BaseController
|
|
|
|
|
|
$post['product'] = $productList;
|
|
|
|
|
|
- $sendType = $post['sendType'] ?? 1;
|
|
|
+ $sendType = $post['sendType'] ?? 0;
|
|
|
$sendCost = 0;
|
|
|
$packCost = 0;
|
|
|
- if ($sendType == 3) {
|
|
|
+ if ($sendType == dict::getDict('sendType', 'thirdSend')) {
|
|
|
$weight = 0;
|
|
|
foreach ($productList as $itemData) {
|
|
|
$currentWeight = $itemData['weight'] ?? 0;
|