From 394a18cbd96b581cab75a780be04aff84451fd46 Mon Sep 17 00:00:00 2001 From: Sky_slience <95515853+skysliences@users.noreply.github.com> Date: Wed, 30 Jul 2025 16:55:32 +0800 Subject: [PATCH] Fix 123 download (#9235) * fix(driver): handle additional HTTP status code 210 for URL redirection * fix(driver): 123 download url error --------- Co-authored-by: Sky_slience --- drivers/123/driver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/123/driver.go b/drivers/123/driver.go index 32c053e2..a8af2b6f 100644 --- a/drivers/123/driver.go +++ b/drivers/123/driver.go @@ -113,6 +113,8 @@ func (d *Pan123) Link(ctx context.Context, file model.Obj, args model.LinkArgs) log.Debugln("res code: ", res.StatusCode()) if res.StatusCode() == 302 { link.URL = res.Header().Get("location") + } else if res.StatusCode() == 210 { + link.URL = downloadUrl } else if res.StatusCode() < 300 { link.URL = utils.Json.Get(res.Body(), "data", "redirect_url").ToString() }