Skip to content

Commit

Permalink
fix(baidu_share): modify api url param clienttype=0
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Jun 6, 2024
1 parent 639b781 commit 537b580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/baidu_share/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (d *BaiduShare) Link(ctx context.Context, file model.Obj, args model.LinkAr
"uk": {d.info.Uk},
}.Encode()).
SetResult(&respJson).
Post("api/sharedownload?app_id=250528&channel=chunlei&clienttype=12&web=1")
Post("api/sharedownload?app_id=250528&channel=chunlei&clienttype=0&web=1")
if err == nil {
if resp.IsSuccess() && respJson.Errno == 0 && respJson.List[0].Dlink != "" {
link.URL = respJson.List[0].Dlink
Expand Down

0 comments on commit 537b580

Please sign in to comment.