From 03f24862add2778a98fe2bd634e7afcd14421073 Mon Sep 17 00:00:00 2001 From: Aynakeya Date: Mon, 30 Jun 2025 11:37:45 +0800 Subject: [PATCH 1/2] update cookie related info (#31) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fa92faf..02157c7 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ func main() { ``` +#### Cookie相关 + +截至2025年06月25日,必要的cookie为`buvid3`, `SESSDATA`, `bili_jct` + ### 进阶使用 #### 监听自定义事件 From 2bdebcf3e3df1e73c12cbf4f0aa5ab7842fff751 Mon Sep 17 00:00:00 2001 From: Akegarasu Date: Sat, 26 Jul 2025 11:14:34 +0800 Subject: [PATCH 2/2] fix #33 --- client/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/client.go b/client/client.go index 2fee5f2..45b726f 100644 --- a/client/client.go +++ b/client/client.go @@ -87,6 +87,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 }