|
|
@@ -14,6 +14,7 @@ use bizMall\order\classes\OrderItemClass;
|
|
|
use bizMall\order\services\OrderService;
|
|
|
use bizMall\promote\services\CouponService;
|
|
|
use bizMall\saas\services\RegionService;
|
|
|
+use bizMall\shop\classes\ShopExtClass;
|
|
|
use bizMall\user\services\UserService;
|
|
|
use common\components\dateUtil;
|
|
|
use common\components\dict;
|
|
|
@@ -579,6 +580,13 @@ class OrderController extends BaseController
|
|
|
$post = Yii::$app->request->post();
|
|
|
$payWay = isset($post['payWay']) ? $post['payWay'] : 0;
|
|
|
$shopId = $this->shopId;
|
|
|
+
|
|
|
+ $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
|
|
|
+ $gatheringItem = !empty($ext) ? $ext->gatheringItem : 0;
|
|
|
+ if (empty($gatheringItem)) {
|
|
|
+ util::fail('请设置付款用的商品');
|
|
|
+ }
|
|
|
+
|
|
|
$post['shopId'] = $shopId;
|
|
|
$post['mainId'] = $this->mainId;
|
|
|
$post['sjId'] = $this->sjId;
|