修复地址判断

This commit is contained in:
mkm 2023-11-10 11:03:07 +08:00
parent b17bf72993
commit eaf77d5a0e

View File

@ -71,7 +71,8 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$order_extend = [];
//检查商品类型, 活动商品只能单独购买
foreach ($merchantCartList as $merchantCart) {
if($merchantCart['type_id']!=Merchant::TypeSupplyChain){
if(($merchantCart['type_id']!=Merchant::TypeSupplyChain)&&$address){
if($merchantCart['street_id']!=$address['street_code']){
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
}