调整购物卡使用限制

This commit is contained in:
luofei 2024-02-29 14:03:13 +08:00
parent 9de3c1bde1
commit da72fe2d5b

View File

@ -83,8 +83,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$allowDelivery = true;
$activityProductCount = 0;
//判断是否是平台购物卡,购物卡不允许使用任何优惠券
$merchantCate = $merchantCartList[0]['list'][0]->product->merCateId;
$isPlatformCard = $merchantCart['list'][0]['product']->isPlatformCard();
$isPlatformCard = $merchantCartList[0]['list'][0]['product']->isPlatformCard();
if ($isPlatformCard) {
$merchantTypeId = Merchant::where('uid', $uid)->value('type_id');
if (empty($merchantTypeId) || $merchantTypeId != 21) {