Skip to content

Commit

Permalink
Update util.go
Browse files Browse the repository at this point in the history
  • Loading branch information
zengge99 authored Jun 18, 2024
1 parent abab8ad commit c3754a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/quark_share/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3754a6

Please sign in to comment.