From 47edd6cf73a6468d2963c6ea28ed131b7862d9a8 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 9 Sep 2022 20:25:24 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Models/Host.php b/app/Models/Host.php index e9054e4..f7af372 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -3,7 +3,6 @@ namespace App\Models; use App\Models\Module\Module; -use App\Exceptions\CommonException; use App\Models\WorkOrder\WorkOrder; use Illuminate\Support\Facades\Cache; // use Illuminate\Database\Eloquent\SoftDeletes; @@ -114,7 +113,7 @@ public function cost($price = null) ]); } - $this->price = intval(log10(abs($this->price)) / 3);; + $this->price = intval(log10(abs($this->price)) / 3); Cache::decrement($cache_key, $this->price);