调整下单跨区限制

This commit is contained in:
luofei 2024-02-22 15:31:39 +08:00
parent c9a97a22fd
commit 0df0acc5d8

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 && $merchantCart['list'][0]['product_type'] != 2) {
if (($merchantCart['type_id'] != Merchant::TypeSupplyChain) && $address && $merchantCart['list'][0]['product_type'] != 2 && $merchantCart['list'][0]['product']['type'] != 1) {
if ($merchantCart['street_id'] != $address['street_code'] && $createOrder && !in_array($merchantCart['mer_id'], $takes)) {
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
}