We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba37dfe commit 0c948e3Copy full SHA for 0c948e3
bilibili/api.go
@@ -200,7 +200,7 @@ func GetVideoInfo(id string) (card Card, err error) {
200
if err != nil {
201
return
202
}
203
- err = json.Unmarshal(binary.StringToBytes(gjson.ParseBytes(data).Raw), &card)
+ err = json.Unmarshal(binary.StringToBytes(gjson.GetBytes(data, "data").Raw), &card)
204
205
206
bilibili/ctx.go
@@ -11,6 +11,7 @@ import (
11
12
var re = regexp.MustCompile(`^\d+$`)
13
14
+// RequireUser 查询用户
15
func RequireUser(cfg *CookieConfig) func(ctx *zero.Ctx) bool {
16
return func(ctx *zero.Ctx) bool {
17
keyword := ctx.State["regex_matched"].([]string)[1]
0 commit comments