保留 5 位

This commit is contained in:
iVampireSP.com 2022-10-15 09:54:46 +08:00
parent 6a30284bd9
commit 6c152a2d43
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -99,6 +99,8 @@ public function cost($price = null, $auto = true)
$this->price = $price;
}
$this->price = round($this->price, 5);
$amount = $price / config('drops.rate') + 1;
// if drops <= price