调整平台优惠券使用限制

This commit is contained in:
luofei 2024-02-20 16:04:55 +08:00
parent 9c847b1321
commit cf8c232b96

View File

@ -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 = [