From c3754a6793f0886ca111549c5b5d5049ed6ba40e Mon Sep 17 00:00:00 2001 From: zengge99 <83830807+zengge99@users.noreply.github.com> Date: Tue, 18 Jun 2024 09:08:42 +0800 Subject: [PATCH] Update util.go --- drivers/quark_share/util.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/quark_share/util.go b/drivers/quark_share/util.go index 5f299bb28c1..6c80564acf4 100644 --- a/drivers/quark_share/util.go +++ b/drivers/quark_share/util.go @@ -131,11 +131,10 @@ func (d *QuarkShare) previewLink(file model.Obj, fid string) (*model.Link, error } var resp PreviewResp ua := d.conf.ua - r, err := d.request("/file/v2/play", http.MethodPost, func(req *resty.Request) { + _, err := d.request("/file/v2/play", http.MethodPost, func(req *resty.Request) { req.SetHeader("User-Agent", ua). SetBody(data) }, &resp) - fmt.Println("获取转码响应", file.GetName(), string(r)) if err != nil { fmt.Println("获取夸克直链失败", file.GetName(), err) return nil, err