mirror of
https://github.com/AynaLivePlayer/blivedm-go.git
synced 2025-12-06 11:22:50 +08:00
Merge branch 'Akegarasu:main' into main
This commit is contained in:
@@ -74,6 +74,10 @@ func main() {
|
||||
|
||||
```
|
||||
|
||||
#### Cookie相关
|
||||
|
||||
截至2025年06月25日,必要的cookie为`buvid3`, `SESSDATA`, `bili_jct`
|
||||
|
||||
### 进阶使用
|
||||
|
||||
#### 监听自定义事件
|
||||
|
||||
@@ -109,6 +109,10 @@ func (c *Client) init() error {
|
||||
c.token = info.Data.Token
|
||||
}
|
||||
}
|
||||
if c.token == "" {
|
||||
log.Error("cannot get account token")
|
||||
return errors.New("token 获取失败")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user