Skip to content

Commit

Permalink
perf(123pan): change domain of login (#7325)
Browse files Browse the repository at this point in the history
* Update driver.go

* 1

* Update util.go

* 123新登录接口

* Revert "Update util.go"

This reverts commit a13a58f.

* Update driver.go

* Update util.go

* Update util.go
  • Loading branch information
hanbao233xD authored Oct 15, 2024
1 parent e8538bd commit 2830575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/123/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion drivers/123/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2830575

Please sign in to comment.