From c2092b7215d204d044d5fbb3ffa073cd057c2c2e Mon Sep 17 00:00:00 2001 From: Jianyun Zhao Date: Mon, 21 Nov 2022 13:45:12 +0800 Subject: [PATCH] fix: lanzou file list parse error (#17) --- internal/driver/lanzou/share.go | 6 +++--- internal/driver/lanzou/share_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/driver/lanzou/share.go b/internal/driver/lanzou/share.go index 44e9583..6d5177d 100644 --- a/internal/driver/lanzou/share.go +++ b/internal/driver/lanzou/share.go @@ -121,9 +121,9 @@ func (l *Drive) resolveFileShareURL(parsedURI string, pwd string) (*ResponseData SetFormData(map[string]string{ "action": "downprocess", "signs": data["ajaxdata"], - "sign": data["msigns"], - "websign": data["wsigns"], - "websignkey": data["cwebsignkeyc"], + "sign": data["s_sign"], + "websign": data["ws_sign"], + "websignkey": data["wsk_sign"], "ves": "1", }). Post("/ajaxm.php") diff --git a/internal/driver/lanzou/share_test.go b/internal/driver/lanzou/share_test.go index f9f4d67..dca2100 100644 --- a/internal/driver/lanzou/share_test.go +++ b/internal/driver/lanzou/share_test.go @@ -77,8 +77,8 @@ func TestParseLanzouUrl(t *testing.T) { }, { name: "test lanzou file list1", args: args{ - url: "https://wws.lanzous.com/imPXnkux3kb", - pwd: "", + url: "https://sobooks.lanzoui.com/b03nqddti", + pwd: "gw0h", }, }, }