From 0c0432f01fc905866a9a12ded241ceebd0380f5d Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 22 Jan 2024 17:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8B=E5=8D=95=E5=89=8D?= =?UTF-8?q?=E7=BD=AE=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/order/StoreOrderCreateRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index 73c6e7f2..49943840 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -79,7 +79,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository foreach ($merchantCartList as $merchantCart) { if (($merchantCart['type_id'] != Merchant::TypeSupplyChain) && $address) { - if ($merchantCart['street_id'] != $address['street_code']) { + if ($merchantCart['street_id'] != $address['street_code'] && $createOrder) { throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买'); } }