Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

直播信息流:为保护用户隐私,未注册登陆用户将无法查看他人昵称 #732

Open
moian98 opened this issue Jul 2, 2023 · 7 comments
Labels
直播/Live 接口:直播 问题/Question 暂时无法确定的性质

Comments

@moian98
Copy link

moian98 commented Jul 2, 2023

B站最近更新了隐私政策,直播监听5分钟左右,会提示‘为保护用户隐私,未注册登陆用户将无法查看他人昵称’,所有发送弹幕的用户UID都为0了,大佬们有什么解决办法吗?

command={'cmd': 'LOG_IN_NOTICE', 'data': {'notice_msg': '为保护用户隐私,未注册登陆用户将无法查看他人昵称', 'image_web': 'http://i0.hdslb.com/bfs/dm/75e7c16b99208df259fe0a93354fd3440cbab412.png', 'image_app': ''}}
@FishZe
Copy link

FishZe commented Jul 2, 2023

具体开始时间应为6月30日下午五点左右

crtime: 0x649e99b4:8492ad88 -- Fri Jun 30 17:00:36 2023

@SocialSisterYi
Copy link
Owner

长连接握手 5min 后 UID 变为 0,还是未登录 UID 完全不可见?

@SocialSisterYi SocialSisterYi added 问题/Question 暂时无法确定的性质 直播/Live 接口:直播 labels Jul 3, 2023
@eppzrypt
Copy link

eppzrypt commented Jul 3, 2023

游客身份使用 ws 监听直播间数据流,接收的弹幕数据一开始正常:

{
  "cmd": "DANMU_MSG",
  "info": [
    ...
    [17964621, '天的潞', 0, 0, 0, 10000, 1, ''],
    ...
}

大约 5 分钟后 ws 接收的弹幕数据 uid 都变成 0,且昵称被星号隐藏:

{
  "cmd": "DANMU_MSG",
  "info": [
    ...
    [ 0, "提***", 0, 0, 0, 10000, 1, '' ],
    ...
}

同时接收到 cmd LOG_IN_NOTICE

{
  "notice_msg": "为保护用户隐私,未注册登陆用户将无法查看他人昵称",
  "image_web": "http://i0.hdslb.com/bfs/dm/75e7c16b99208df259fe0a93354fd3440cbab412.png",
  "image_app": ""
}

礼物、上舰、SC、进场&关注等 cmd 暂时未发现有变动.

@moian98
Copy link
Author

moian98 commented Jul 3, 2023

blivedm/pull #29

目前根据此方法测试了半小时,在发送认证包时传入主播UID,弹幕接收正常。

具体是否完全有效,还需要大量测试。

@ProgramRipper
Copy link
Contributor

auth 包仅包含 roomid 和 protover 时不受影响。测试发现 platform = web 即会受到影响。考虑到 APP 端未登录时不受影响,可能是平台原因。(我不擅长 APP 端抓包,望帮忙验证)

@FishZe
Copy link

FishZe commented Jul 3, 2023

仅传入RoomidProtover,其他字段留空即可

@ProgramRipper
Copy link
Contributor

auth 包仅包含 roomid 和 protover 时不受影响。测试发现 platform = web 即会受到影响。考虑到 APP 端未登录时不受影响,可能是平台原因。(我不擅长 APP 端抓包,望帮忙验证)

此方式已经失效,同时观察到 APP 端未登录也会无法查看他人昵称。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
直播/Live 接口:直播 问题/Question 暂时无法确定的性质
Projects
None yet
Development

No branches or pull requests

5 participants