simon300000/bilibili-live-ws

protover可选性

Billyzou0741326 opened this issue · 7 comments

希望大佬加一下弹幕协议protover项用1的选项

原因是版本2去掉了GUARD_LOTTERY_START的播报

{
    "cmd": "GUARD_LOTTERY_START",
    "data": {
        "id": 1972383,
        "link": "https://live.bilibili.com/3629359",
        "lottery": {
            "asset_animation_pic": "https://i0.hdslb.com/bfs/vc/ff2a28492970850ce73df0cc144f1766b222d471.gif",
            "asset_icon": "https://i0.hdslb.com/bfs/vc/43f488e7c4dca5ba6fbdcb88f40052d56bf777d8.png",
            "id": 1972383,
            "keyword": "guard",
            "mobile_animation_asset": "",
            "mobile_display_mode": 2,
            "mobile_static_asset": "",
            "privilege_type": 3,
            "sender": {
                "face": "http://i0.hdslb.com/bfs/face/3a48db0bf08caf72d551e45073066c156532c2a4.jpg",
                "uid": 1662330,
                "uname": "罗卜卜卜卜卜卜有毒"
            },
            "status": 1,
            "thank_text": "恭喜<%罗卜卜卜卜卜卜有毒%>上任舰长",
            "time": 1200,
            "time_wait": 0,
            "weight": 0
        },
        "payflow_id": "gd_0d4c52a0a8fbb52759_202002",
        "privilege_type": 3,
        "roomid": 3629359,
        "type": "guard"
    }
}

哇 好的

多谢simon大佬

我不是dalao啦

太强了 是大佬 多谢了

能用就好www

补充一下发现GUARD_BUY也需要使用版本1。测试环境KeepLiveTCP

跟进一下 protover2是有GUARD_LOTTERY_START的 是我解析方法当时不完整 :(