From 33e00b0ba95f1d86ce5f11257d2e6fac983f0bbd Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 23 Oct 2022 12:58:18 +0800 Subject: [PATCH] fix --- app/Models/Host.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Host.php b/app/Models/Host.php index 78c8bd7..86f399e 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -95,12 +95,12 @@ public function cost($price = null, $auto = true) $drops = $transaction->getDrops($this->user_id); - if ($price != null) { - $real_price = $price; + if ($price == null) { + $real_price = $this->price; } if ($price == 0) { - $real_price = 0; + return true; } $real_price = round($real_price ?? 0, 8);