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; // 选中的优惠卷数据