改进
This commit is contained in:
parent
33e00b0ba9
commit
e465e7469b
@ -95,11 +95,13 @@ public function cost($price = null, $auto = true)
|
||||
|
||||
$drops = $transaction->getDrops($this->user_id);
|
||||
|
||||
if ($price == null) {
|
||||
if ($price !== null) {
|
||||
$real_price = $price;
|
||||
} else {
|
||||
$real_price = $this->price;
|
||||
}
|
||||
|
||||
if ($price == 0) {
|
||||
if ($real_price == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user