Merge branch 'feature/purchase_record' into dev
This commit is contained in:
commit
45c68f26df
@ -929,6 +929,9 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
$extend = [];
|
$extend = [];
|
||||||
}
|
}
|
||||||
$orderType = $orderInfo['order_type'];
|
$orderType = $orderInfo['order_type'];
|
||||||
|
if ($orderType == 0 && $pay_type == StoreGroupOrder::PAY_TYPE_CREDIT_BUY) {
|
||||||
|
throw new ValidateException('该商品不支持先货后款');
|
||||||
|
}
|
||||||
if (!in_array($orderType, [0, 98]) && (count($orderInfo['order']) > 1 || ($orderType != 10 && count($orderInfo['order'][0]['list']) > 1))) {
|
if (!in_array($orderType, [0, 98]) && (count($orderInfo['order']) > 1 || ($orderType != 10 && count($orderInfo['order'][0]['list']) > 1))) {
|
||||||
throw new ValidateException('活动商品请单独购买');
|
throw new ValidateException('活动商品请单独购买');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user