改进 金额重置

This commit is contained in:
iVampireSP.com 2022-11-23 21:27:38 +08:00
parent df73ceea1b
commit 8030f73933
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -316,6 +316,11 @@ public function cost($amount = null, $auto = true): bool
return true;
}
// 如果太小,则重置为 0.9999
if ($real_price < 0.9999) {
$real_price = 0.9999;
}
$real_price = round($real_price ?? 0, 4);
$transaction = new Transaction();