mirror of
https://github.com/v2board/v2board.git
synced 2025-06-16 06:37:53 +08:00
update: inventory manage
This commit is contained in:
@ -15,13 +15,13 @@ class PlanService
|
||||
|
||||
public function incrementInventory(): bool
|
||||
{
|
||||
if ($this->plan->inventory_limit !== NULL) return true;
|
||||
if ($this->plan->inventory_limit === NULL) return true;
|
||||
return $this->plan->increment('inventory_limit');
|
||||
}
|
||||
|
||||
public function decrementInventory(): bool
|
||||
{
|
||||
if ($this->plan->inventory_limit !== NULL) return true;
|
||||
if ($this->plan->inventory_limit === NULL) return true;
|
||||
return $this->plan->decrement('inventory_limit');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user