fix(189): adapt new login method (close #4378)

This commit is contained in:
Andy Hsu
2023-05-13 17:26:32 +08:00
parent 5be79eb26e
commit 077a525961
4 changed files with 242 additions and 117 deletions

View File

@ -32,7 +32,7 @@ func (d *Cloud189) GetAddition() driver.Additional {
func (d *Cloud189) Init(ctx context.Context) error {
d.client = base.NewRestyClient().
SetHeader("Referer", "https://cloud.189.cn/")
return d.login()
return d.newLogin()
}
func (d *Cloud189) Drop(ctx context.Context) error {