Skip to content

Commit

Permalink
fix: lanzou file list parse error (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyun8023 authored Nov 21, 2022
1 parent df08035 commit c2092b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/driver/lanzou/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions internal/driver/lanzou/share_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
}
Expand Down

0 comments on commit c2092b7

Please sign in to comment.