lkddi
7bae5e56ff
修复:私有频道改用数字 ID,解决中文用户名导致 Pusher 频道名非法
错误原因:Pusher 频道名只允许 [a-zA-Z0-9_\-=@,.],
中文用户名(如「超级舞魅」)用于 private-user.{username} 导致
PusherException: Invalid channel name。
修复方案(改用数字 ID):
- FriendAdded/FriendRemoved 构造加 toUserId 参数
- broadcastOn() 改为 PrivateChannel('user.' . $toUserId)
- FriendController 传入 $target->id / $targetUser->id
- channels.php 鉴权改为 'user.{id}',核对 $user->id 数字相等
- frame.blade.php chatContext 加 userId
- scripts.blade.php Echo.private 改用 userId 订阅
2026-03-01 01:41:04 +08:00
..
2026-02-28 23:44:38 +08:00
2026-03-01 01:28:23 +08:00
2026-02-28 23:44:38 +08:00
2026-02-27 16:19:21 +08:00
2026-03-01 01:41:04 +08:00
2026-03-01 01:41:04 +08:00
2026-02-27 16:26:16 +08:00
2026-02-26 13:35:38 +08:00
2026-02-26 23:43:09 +08:00
2026-02-26 13:35:38 +08:00
2026-02-26 22:27:49 +08:00
2026-02-26 13:35:38 +08:00
2026-02-26 13:35:38 +08:00
2026-02-26 23:12:55 +08:00