改进 判断
This commit is contained in:
parent
266c50f6b1
commit
e68ca6afae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user