|
|
@@ -41,8 +41,11 @@ class PurchaseController extends BaseController
|
|
|
if (!$shopNo) {
|
|
|
util::fail("暂不支持配送哦,请选择自取");
|
|
|
}
|
|
|
- //计算运费
|
|
|
-
|
|
|
+ //计算运费, 先粗略限制,判定sendCost不能为空, 后续应该重新再算运费
|
|
|
+ if(!$post['sendCost']){
|
|
|
+ util::fail("请确认运费");
|
|
|
+ }
|
|
|
+ // $post['sendCost'] =
|
|
|
}
|
|
|
$connection = Yii::$app->db;//事务处理
|
|
|
$transaction = $connection->beginTransaction();
|