From 60e0ad3c23f3cdea3bd8c7c7e3451c7310d68d72 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 9 Nov 2023 11:39:49 +0800 Subject: [PATCH] 1 --- app/Services/UserCouponService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/UserCouponService.php b/app/Services/UserCouponService.php index ee077cb..43b9a7c 100644 --- a/app/Services/UserCouponService.php +++ b/app/Services/UserCouponService.php @@ -197,6 +197,10 @@ class UserCouponService extends BaseService // 处理存在互斥卷情况 foreach ($coupons as $coupon) { + if ($coupon['is_can_use'] == 0){ + continue; + } + if (empty($selected_coupon)) { $selected_coupons[] = $coupon; // 选中的优惠卷数据