shish 3 anni fa
parent
commit
96253cfbd1
2 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 2 2
      app-hd/controllers/PurchaseController.php
  2. 3 4
      common/components/dict.php

+ 2 - 2
app-hd/controllers/PurchaseController.php

@@ -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;

+ 3 - 4
common/components/dict.php

@@ -49,12 +49,11 @@ class dict
             'big' => 0,
             'small' => 1,
         ],
-        //配送方式,0未确认配送方式 1免配送,到店自取 2自己送 3跑腿送
+        //配送方式,0出车取货 1到店自取 2发快递
         'sendType' => [
-            'unConfirm' => 0,
+            'carGet' => 0,
             'shopGet' => 1,
-            'selfSend' => 2,
-            'otherSend' => 3,
+            'thirdSend' => 2,
         ],
 
         //批发店囤货时显示给零售库存的最高值