From cf8c232b962c0d2642d995e0b3773a926c16b667 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 20 Feb 2024 16:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B9=B3=E5=8F=B0=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E4=BD=BF=E7=94=A8=E9=99=90=E5=88=B6?= 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 992da79c..460bfdf3 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -572,7 +572,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository foreach ($platformCoupon as &$coupon) { $coupon['checked'] = false; //通用券 - if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_ALL) { + if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_ALL || $coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_CARD) { $coupon['disabled'] = $total_true_price <= 0 || $coupon['use_min_price'] > $total_true_price; if (!$platformCouponRate && !$coupon['disabled'] && !$flag && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) { $platformCouponRate = [