改进 被封禁的用户无法参加

This commit is contained in:
iVampireSP.com 2023-01-10 22:36:49 +08:00
parent 9e1b85697e
commit dd49c870f6
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -78,6 +78,6 @@ public function scopeBirthday()
{
/** @noinspection PhpUndefinedMethodInspection */
return $this->select(['id', 'name', 'birthday_at', 'email_md5', 'created_at'])->whereMonth('birthday_at', now()->month)
->whereDay('birthday_at', now()->day);
->whereDay('birthday_at', now()->day)->whereNull('banned_at');
}
}