修复地址判断
This commit is contained in:
parent
b17bf72993
commit
eaf77d5a0e
@ -71,7 +71,8 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
$order_extend = [];
|
$order_extend = [];
|
||||||
//检查商品类型, 活动商品只能单独购买
|
//检查商品类型, 活动商品只能单独购买
|
||||||
foreach ($merchantCartList as $merchantCart) {
|
foreach ($merchantCartList as $merchantCart) {
|
||||||
if($merchantCart['type_id']!=Merchant::TypeSupplyChain){
|
|
||||||
|
if(($merchantCart['type_id']!=Merchant::TypeSupplyChain)&&$address){
|
||||||
if($merchantCart['street_id']!=$address['street_code']){
|
if($merchantCart['street_id']!=$address['street_code']){
|
||||||
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
|
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user