改进 扣费
This commit is contained in:
parent
2b604579e9
commit
5588848568
@ -150,11 +150,8 @@ public function cost($price = null, $auto = true): bool
|
||||
if ($price !== null) {
|
||||
$real_price = $price;
|
||||
} else {
|
||||
if ($this->managed_price === null) {
|
||||
$real_price = $this->price;
|
||||
} else {
|
||||
if ($this->managed_price !== null) {
|
||||
$real_price = $this->managed_price;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user