diff --git a/app/Model/UserCoupon.php b/app/Model/UserCoupon.php index 216f3a7..1825afe 100644 --- a/app/Model/UserCoupon.php +++ b/app/Model/UserCoupon.php @@ -69,7 +69,7 @@ class UserCoupon extends Model { return self::with(['Coupon']) ->whereHas('Coupon' , function($query){ - $query->where("coupon_client",1)->where("coupon_status",1); + $query->where("coupon_client",1)->whereNotIn("coupon_status",[2,4]); }) ->where($params)->get($fields); }