diff --git a/drivers/189/189.go b/drivers/189/189.go index 1adf8818..79d0bbc2 100644 --- a/drivers/189/189.go +++ b/drivers/189/189.go @@ -17,6 +17,7 @@ import ( "io" "math" "net/http" + "net/http/cookiejar" "path/filepath" "regexp" "strconv" @@ -105,6 +106,9 @@ func (driver Cloud189) Login(account *model.Account) error { client.SetRetryCount(3) client.SetHeader("Referer", "https://cloud.189.cn/") } + // clear cookie + jar, _ := cookiejar.New(nil) + client.SetCookieJar(jar) url := "https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https%3A%2F%2Fcloud.189.cn%2Fmain.action" b := "" lt := ""