fix(baidu): duplicate prefix of crack link request

pull/1604/head
Noah Hsu 2022-09-05 14:51:23 +08:00
parent 900e71f78f
commit 868a4fd49e
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ func (d *BaiduNetdisk) linkCrack(file model.Obj, args model.LinkArgs) (*model.Li
"web": "5",
"origin": "dlna",
}
_, err := d.get("https://pan.baidu.com/api/filemetas", param, &resp)
_, err := d.request("https://pan.baidu.com/api/filemetas", http.MethodGet, func(req *resty.Request) {
req.SetQueryParams(param)
}, &resp)
if err != nil {
return nil, err
}