调整下单前置校验
This commit is contained in:
parent
1af1b7570b
commit
0c0432f01f
@ -79,7 +79,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
foreach ($merchantCartList as $merchantCart) {
|
foreach ($merchantCartList as $merchantCart) {
|
||||||
|
|
||||||
if (($merchantCart['type_id'] != Merchant::TypeSupplyChain) && $address) {
|
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('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
|
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user