修复 用户为空的问题

This commit is contained in:
iVampireSP.com 2023-03-01 22:30:31 +08:00
parent df7d20408d
commit e1f5337fe3
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -26,6 +26,8 @@ public function send(mixed $notifiable, Notification $notification): void
$user = (new User)->find($user_id);
broadcast(new Users($user, $data['event'], $data));
if ($user) {
broadcast(new Users($user, $data['event'], $data));
}
}
}