改进 扣费

This commit is contained in:
iVampireSP.com 2022-11-19 20:44:58 +08:00
parent 2b604579e9
commit 5588848568
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -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;
}
}