改进 生日
This commit is contained in:
parent
b9f26fef70
commit
fa6e58371a
@ -40,7 +40,10 @@ public function handle(): void
|
||||
|
||||
User::birthday()->chunk(100, function ($users) use ($birthday_group) {
|
||||
foreach ($users as $user) {
|
||||
$birthday_group->setTempGroup($user, $birthday_group, now()->addDay());
|
||||
// 到第二天 00:00 now
|
||||
$now = now()->addDay()->startOfDay();
|
||||
|
||||
$birthday_group->setTempGroup($user, $birthday_group, $now);
|
||||
$user->notify(new TodayIsUserBirthday());
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user