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