预售商品支持跨区域购买

This commit is contained in:
luofei 2024-02-20 17:33:29 +08:00
parent 6d6eccb016
commit 050208900a

View File

@ -82,7 +82,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$allowDelivery = true;
$activityProductCount = 0;
foreach ($merchantCartList as $merchantCart) {
if (($merchantCart['type_id'] != Merchant::TypeSupplyChain) && $address) {
if (($merchantCart['type_id'] != Merchant::TypeSupplyChain) && $address && $merchantCart['list'][0]['product_type'] != 2) {
if ($merchantCart['street_id'] != $address['street_code'] && $createOrder && !in_array($merchantCart['mer_id'], $takes)) {
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
}