林琦海 5 лет назад
Родитель
Сommit
a5da9f17af
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      app-hd/controllers/PurchaseController.php

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

@@ -41,6 +41,8 @@ class PurchaseController extends BaseController
             if (!$shopNo) {
                 util::fail("暂不支持配送哦,请选择自取");
             }
+            //计算运费
+
         }
         $connection = Yii::$app->db;//事务处理
         $transaction = $connection->beginTransaction();
@@ -269,8 +271,7 @@ class PurchaseController extends BaseController
     public function actionFreight()
     {
         $post = Yii::$app->request->post();
-        //$ghsId = $post['ghsId'] ?? 0;
-        $ghsId = 31;
+        $ghsId = $post['ghsId'] ?? 0;
         //供货商
         $ghsInfo = GhsClass::getById($ghsId);