From 8030f739331edc2383003b2fd05498b57ee5aa7a Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 23 Nov 2022 21:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Host.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Host.php b/app/Models/Host.php index 353833b..b0bc070 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -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();