From dd49c870f64a74220731076cc7310feaacd7fdac Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Tue, 10 Jan 2023 22:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=A2=AB=E5=B0=81?= =?UTF-8?q?=E7=A6=81=E7=9A=84=E7=94=A8=E6=88=B7=E6=97=A0=E6=B3=95=E5=8F=82?= =?UTF-8?q?=E5=8A=A0?= 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 9661564..1dc035f 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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'); } }