mirror of https://github.com/Xhofe/alist
perf(123pan): change domain of login (#7325)
* Update driver.go
* 1
* Update util.go
* 123新登录接口
* Revert "Update util.go"
This reverts commit a13a58f8a8
.
* Update driver.go
* Update util.go
* Update util.go
pull/7344/head
parent
e8538bd215
commit
2830575490
|
@ -82,6 +82,7 @@ func (d *Pan123) Link(ctx context.Context, file model.Obj, args model.LinkArgs)
|
|||
"type": f.Type,
|
||||
}
|
||||
resp, err := d.request(DownloadInfo, http.MethodPost, func(req *resty.Request) {
|
||||
|
||||
req.SetBody(data).SetHeaders(headers)
|
||||
}, nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -26,8 +26,9 @@ const (
|
|||
Api = "https://www.123pan.com/api"
|
||||
AApi = "https://www.123pan.com/a/api"
|
||||
BApi = "https://www.123pan.com/b/api"
|
||||
LoginApi = "https://login.123pan.com/api"
|
||||
MainApi = BApi
|
||||
SignIn = MainApi + "/user/sign_in"
|
||||
SignIn = LoginApi + "/user/sign_in"
|
||||
Logout = MainApi + "/user/logout"
|
||||
UserInfo = MainApi + "/user/info"
|
||||
FileList = MainApi + "/file/list/new"
|
||||
|
|
Loading…
Reference in New Issue