mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update: inventory manage
This commit is contained in:
parent
90b5364039
commit
7713489945
@ -15,13 +15,13 @@ class PlanService
|
|||||||
|
|
||||||
public function incrementInventory(): bool
|
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');
|
return $this->plan->increment('inventory_limit');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function decrementInventory(): bool
|
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');
|
return $this->plan->decrement('inventory_limit');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
public/theme/v2board/assets/umi.css
vendored
2
public/theme/v2board/assets/umi.css
vendored
File diff suppressed because one or more lines are too long
2
public/theme/v2board/assets/umi.js
vendored
2
public/theme/v2board/assets/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user