From e68ca6afaedc13a72841a5e25bd85ab62cbceaa6 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 23 Sep 2022 20:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 229f0c0..ee4b3ba 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -51,7 +51,7 @@ public function toDrops($amount = 1) $cache_key = 'user_drops_' . $this->id; - if ($amount === 0) { + if ($amount === 0 || $amount === null) { return $this; }