mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
coupon plan limit
This commit is contained in:
@ -43,6 +43,12 @@ class CouponService
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ($this->coupon->limit_plan_ids) {
|
||||
$limitPlanIds = json_decode($this->coupon->limit_plan_ids);
|
||||
if (!in_array($order->plan_id, $limitPlanIds)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user