From 521fd538daadc231020ae659dcab6c001d02ad43 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 9 Sep 2022 20:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= 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 6c37b82..0d53243 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -114,7 +114,7 @@ public function cost($price = null) ]); } - $this->price = abs($this->price); + $this->price = (string)($this->price); Cache::decrement($cache_key, $this->price);