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

[新增/更新请求] 补充SUPER_CHAT_MESSAGE数据 #1103

Open
1 task done
yandujun363 opened this issue Sep 18, 2024 · 0 comments
Open
1 task done

[新增/更新请求] 补充SUPER_CHAT_MESSAGE数据 #1103

yandujun363 opened this issue Sep 18, 2024 · 0 comments

Comments

@yandujun363
Copy link

提交前请确认

  • 我已检索仓库中文档,不包含所提及内容,或所提及内容在本仓库中存在错误,且 Issues、Pull Requests 中无相关提交

API 来源

Web 端(含 h5)

API 类型

长连接数据帧(含 ws、TCP)

API 地址

https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/live/message_stream.md

详情描述

补充SUPER_CHAT_MESSAGE数据,太晚了明天有空再整理

推荐抓包数据到千舰/千同接主播的直播间抓包如

[
    "21696950",//千舰
    "401480763"//千同接(不一定)
]

抓包到的数据和文档里有点不太一样

{
    "cmd": "SUPER_CHAT_MESSAGE",
    "data": {
        "background_bottom_color": "#2A60B2",
        "background_color": "#EDF5FF",
        "background_color_end": "#405D85",
        "background_color_start": "#3171D2",
        "background_icon": "",
        "background_image": "",
        "background_price_color": "#7497CD",
        "color_point": 0.7,
        "dmscore": 476,
        "end_time": 1726580917,
        "gift": {
            "gift_id": 12000,
            "gift_name": "醒目留言",
            "num": 1
        },
        "group_medal": {
            "is_lighted": 0,
            "medal_id": 0,
            "name": ""
        },
        "id": 10561146,
        "is_mystery": false,
        "is_ranked": 0,
        "is_send_audit": 0,
        "medal_info": {
            "anchor_roomid": 21402309,
            "anchor_uname": "眞白花音_Official",
            "guard_level": 3,
            "icon_id": 0,
            "is_lighted": 1,
            "medal_color": "#1a544b",
            "medal_color_border": 6809855,
            "medal_color_end": 5414290,
            "medal_color_start": 1725515,
            "medal_level": 22,
            "medal_name": "帕清姬",
            "special": "",
            "target_id": 401480763
        },
        "message": "白菜给我尝尝月饼\n",
        "message_font_color": "#A3F6FF",
        "message_trans": "",
        "price": 30,
        "rate": 1000,
        "start_time": 1726580857,
        "time": 60,
        "token": "FCA95FE9",
        "trans_mark": 0,
        "ts": 1726580857,
        "uid": 306913726,
        "uinfo": {
            "base": {
                "face": "https://i1.hdslb.com/bfs/face/50dde95a1977f27077c001f831963c08bfcf3376.jpg",
                "is_mystery": false,
                "name": "智茗_Official",
                "name_color": 0,
                "name_color_str": "#00D1F1",
                "official_info": {
                    "desc": "",
                    "role": 0,
                    "title": "",
                    "type": -1
                },
                "origin_info": {
                    "face": "https://i1.hdslb.com/bfs/face/50dde95a1977f27077c001f831963c08bfcf3376.jpg",
                    "name": "智茗_Official"
                },
                "risk_ctrl_info": null
            },
            "guard": {
                "expired_str": "2024-10-14 23:59:59",
                "level": 3
            },
            "guard_leader": null,
            "medal": {
                "color": 1725515,
                "color_border": 6809855,
                "color_end": 5414290,
                "color_start": 1725515,
                "guard_icon": "https://i0.hdslb.com/bfs/live/143f5ec3003b4080d1b5f817a9efdca46d631945.png",
                "guard_level": 3,
                "honor_icon": "",
                "id": 0,
                "is_light": 1,
                "level": 22,
                "name": "帕清姬",
                "ruid": 401480763,
                "score": 50002582,
                "typ": 0,
                "user_receive_count": 0,
                "v2_medal_color_border": "#5FC7F4FF",
                "v2_medal_color_end": "#43B3E3CC",
                "v2_medal_color_level": "#00308C99",
                "v2_medal_color_start": "#43B3E3CC",
                "v2_medal_color_text": "#FFFFFFFF"
            },
            "title": {
                "old_title_css_id": "",
                "title_css_id": ""
            },
            "uhead_frame": null,
            "uid": 306913726,
            "wealth": null
        },
        "user_info": {
            "face": "https://i1.hdslb.com/bfs/face/50dde95a1977f27077c001f831963c08bfcf3376.jpg",
            "face_frame": "https://i0.hdslb.com/bfs/live/80f732943cc3367029df65e267960d56736a82ee.png",
            "guard_level": 3,
            "is_main_vip": 0,
            "is_svip": 0,
            "is_vip": 0,
            "level_color": "#969696",
            "manager": 0,
            "name_color": "#00D1F1",
            "title": "",
            "uname": "智茗_Official",
            "user_level": 2
        }
    },
    "is_report": true,
    "msg_id": "19937088036699649:1000:1000",
    "p_is_ack": true,
    "p_msg_type": 1,
    "send_time": 1726580857609
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant