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