修复 用户为空的问题
This commit is contained in:
parent
df7d20408d
commit
e1f5337fe3
@ -26,6 +26,8 @@ public function send(mixed $notifiable, Notification $notification): void
|
|||||||
|
|
||||||
$user = (new User)->find($user_id);
|
$user = (new User)->find($user_id);
|
||||||
|
|
||||||
|
if ($user) {
|
||||||
broadcast(new Users($user, $data['event'], $data));
|
broadcast(new Users($user, $data['event'], $data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user