diff --git a/app/Services/CouponService.php b/app/Services/CouponService.php index e6ec1b47..5ff86c39 100644 --- a/app/Services/CouponService.php +++ b/app/Services/CouponService.php @@ -47,8 +47,7 @@ class CouponService { return UserCoupon::with('ranges')->where([ 'user_id'=>$user->id, - 'status'=>0, - ])->where('use_start_at', '<=', now())->where('use_end_at', '>=', now())->get(); + ])->unuse()->get(); } /**