改进 判断

This commit is contained in:
iVampireSP.com 2022-09-23 20:29:24 +08:00
parent 266c50f6b1
commit e68ca6afae
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -51,7 +51,7 @@ public function toDrops($amount = 1)
$cache_key = 'user_drops_' . $this->id; $cache_key = 'user_drops_' . $this->id;
if ($amount === 0) { if ($amount === 0 || $amount === null) {
return $this; return $this;
} }