From 7efea2e7ea9501963dc70284d441bd2c46474db3 Mon Sep 17 00:00:00 2001 From: "luo.pengcheng" Date: Thu, 17 Oct 2024 13:47:09 +0800 Subject: [PATCH] fix(123): change domain of share --- drivers/123_share/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/123_share/driver.go b/drivers/123_share/driver.go index 9c1f3803710..2a893a2b8a3 100644 --- a/drivers/123_share/driver.go +++ b/drivers/123_share/driver.go @@ -94,7 +94,7 @@ func (d *Pan123Share) Link(ctx context.Context, file model.Obj, args model.LinkA } u_ := u.String() log.Debug("download url: ", u_) - res, err := base.NoRedirectClient.R().SetHeader("Referer", "https://www.123pan.com/").Get(u_) + res, err := base.NoRedirectClient.R().SetHeader("Referer", "https://www.123865.com/").Get(u_) if err != nil { return nil, err } @@ -109,7 +109,7 @@ func (d *Pan123Share) Link(ctx context.Context, file model.Obj, args model.LinkA link.URL = utils.Json.Get(res.Body(), "data", "redirect_url").ToString() } link.Header = http.Header{ - "Referer": []string{"https://www.123pan.com/"}, + "Referer": []string{"https://www.123865.com/"}, } return &link, nil }