From 5588848568b2a0c98d9892786eb97cf17881384b Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 19 Nov 2022 20:44:58 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Models/Host.php b/app/Models/Host.php index c20db38..a4f8f96 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -150,11 +150,8 @@ public function cost($price = null, $auto = true): bool if ($price !== null) { $real_price = $price; } else { - if ($this->managed_price === null) { - $real_price = $this->price; - } else { + if ($this->managed_price !== null) { $real_price = $this->managed_price; - } }