Merge branch 'Akegarasu:main' into main

This commit is contained in:
Aynakeya
2025-10-07 20:52:52 +08:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -74,6 +74,10 @@ func main() {
```
#### Cookie相关
截至2025年06月25日必要的cookie为`buvid3`, `SESSDATA`, `bili_jct`
### 进阶使用
#### 监听自定义事件

View File

@@ -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
}