Vector000 / bilive_client

基于Node.JS的bilibili直播挂机系统
MIT License
150 stars 30 forks source link

音量全开 #34

Closed cris3980 closed 5 years ago

cris3980 commented 5 years ago

新活动 有个大乱斗PK ,每局胜利方开启“音量全开”抽奖,有几率获得金瓜子,必出辣条(好像)

cris3980 commented 5 years ago

好像也不能完成移动端看直播时长领免费道具的任务

ShmilyChen commented 5 years ago

@Vector000 大乱斗抽奖弹幕信息格式

{
    "cmd": "PK_LOTTERY_START",
    "data": {
        "asset_animation_pic": "https://i0.hdslb.com/bfs/live/e1ab9f88b4af63fbf15197acea2dbb60bfc4434b.gif",
        "asset_icon": "https://i0.hdslb.com/bfs/vc/44c367b09a8271afa22853785849e65797e085a1.png",
        "id": 334491,
        "max_time": 120,
        "pk_id": 334491,
        "room_id": 1122474,
        "time": 120,
        "title": "恭喜主播大乱斗胜利"
    },
    "_roomid": 1122474
}

加入api

url: https://api.live.bilibili.com/xlive/lottery-interface/v1/pk/join,
type: POST,
data: {
    roomid: _roomid,
    id: pk_id,
    csrf_token: ,
    csrf: ,
    visit_id: 
}

返回值格式

{
    code: 0,
    data: {
        award_id: "1",
        award_image: "https://i0.hdslb.com/bfs/live/da6656add2b14a93ed9eb55de55d0fd19f0fc7f6.png",
        award_num: 0,
        award_text: "辣条X1",
        gift_type: 0,
        id: 334555,
        title: "大乱斗获胜抽奖"
    }
    message: "0",
    ttl: 1
}
Vector000 commented 5 years ago

目测不是全频公告…要在服务端做监听的,我考虑一下,最近有点忙

发送自 Windows 11


发件人: ShmilyChen notifications@github.com 发送时间: Monday, June 17, 2019 9:28:12 PM 收件人: Vector000/bilive_client 抄送: Vector000; Mention 主题: Re: [Vector000/bilive_client] 音量全开 (#34)

@Vector000https://github.com/Vector000 大乱斗抽奖弹幕信息格式

{

"cmd": "PK_LOTTERY_START",

"data": {

   "asset_animation_pic": "https://i0.hdslb.com/bfs/live/e1ab9f88b4af63fbf15197acea2dbb60bfc4434b.gif",

   "asset_icon": "https://i0.hdslb.com/bfs/vc/44c367b09a8271afa22853785849e65797e085a1.png",

   "id": 334491,

   "max_time": 120,

   "pk_id": 334491,

   "room_id": 1122474,

   "time": 120,

   "title": "恭喜主播大乱斗胜利"

},

"_roomid": 1122474

}

加入api

url: https://api.live.bilibili.com/xlive/lottery-interface/v1/pk/join,

type: POST,

data: {

roomid: _roomid,

id: pk_id,

csrf_token: ,

csrf: ,

visit_id:

}

返回值格式

{

code: 0,

data: {

    award_id: "1",

    award_image: "https://i0.hdslb.com/bfs/live/da6656add2b14a93ed9eb55de55d0fd19f0fc7f6.png",

    award_num: 0,

    award_text: "辣条X1",

    gift_type: 0,

    id: 334555,

    title: "大乱斗获胜抽奖"

}

message: "0",

ttl: 1

}

― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Vector000/bilive_client/issues/34?email_source=notifications&email_token=AH6IONFL2F47SMWV2E4HAODP26GOZA5CNFSM4HYRTBIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX3FDOY#issuecomment-502682043, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH6IONHB27V3F7DX2R6FKLTP26GOZANCNFSM4HYRTBIA.

ShmilyChen commented 5 years ago

目测不是全频公告…要在服务端做监听的,我考虑一下,最近有点忙

大佬抽个时间弄一下吧,毕竟这个数量还不少