From 3035a57301e981caf02cd6f053ca79d9eab294b0 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 9 Sep 2022 20:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E6=89=A3=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Host.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Host.php b/app/Models/Host.php index 0d53243..e9054e4 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -114,7 +114,7 @@ public function cost($price = null) ]); } - $this->price = (string)($this->price); + $this->price = intval(log10(abs($this->price)) / 3);; Cache::decrement($cache_key, $this->price);