价格为 0 就不扣费
This commit is contained in:
parent
81455d1807
commit
66d929ff9f
@ -99,7 +99,11 @@ public function cost($price = null, $auto = true)
|
||||
$real_price = $price;
|
||||
}
|
||||
|
||||
$real_price = round($real_price, 8);
|
||||
if ($price == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$real_price = round($real_price ?? 0, 8);
|
||||
|
||||
$amount = $price / config('drops.rate') + 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user