mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 12:37:54 +08:00
update: add coupon and notice switch
This commit is contained in:
@ -81,7 +81,7 @@ class CouponService
|
||||
|
||||
public function check()
|
||||
{
|
||||
if (!$this->coupon) {
|
||||
if (!$this->coupon || !$this->coupon->show) {
|
||||
abort(500, __('Invalid coupon'));
|
||||
}
|
||||
if ($this->coupon->limit_use <= 0 && $this->coupon->limit_use !== NULL) {
|
||||
|
Reference in New Issue
Block a user