mirror of https://github.com/Xhofe/alist
commit
0237e78c1e
|
@ -171,7 +171,7 @@ func (driver Cloud189) Login(account *model.Account) error {
|
||||||
passwordRsa := RsaEncode([]byte(account.Password), jRsakey, true)
|
passwordRsa := RsaEncode([]byte(account.Password), jRsakey, true)
|
||||||
url = "https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do"
|
url = "https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do"
|
||||||
var loginResp LoginResp
|
var loginResp LoginResp
|
||||||
res, err := client.R().
|
res, err = client.R().
|
||||||
SetHeaders(map[string]string{
|
SetHeaders(map[string]string{
|
||||||
"lt": lt,
|
"lt": lt,
|
||||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
|
||||||
|
|
Loading…
Reference in New Issue