mirror of https://github.com/Xhofe/alist
fix(cloudreve): skip init login when using cookie (#4341)
parent
b03879403f
commit
9502f5acd7
|
@ -27,6 +27,9 @@ func (d *Cloudreve) GetAddition() driver.Additional {
|
|||
}
|
||||
|
||||
func (d *Cloudreve) Init(ctx context.Context) error {
|
||||
if d.Cookie != "" {
|
||||
return nil
|
||||
}
|
||||
return d.login()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue