pull/7325/head
hanbao233xD 2024-10-04 16:52:29 +08:00
parent 18e1656786
commit b240169726
2 changed files with 4 additions and 7 deletions

View File

@ -70,10 +70,6 @@ func (d *Pan123) Link(ctx context.Context, file model.Obj, args model.LinkArgs)
headers = map[string]string{
//"X-Real-IP": "1.1.1.1",
"X-Forwarded-For": args.IP,
"user-agent": "123pan/v2.4.0(Android_7.1.2;Xiaomi)",
"platform": "android",
"app-version": "61",
"x-app-version": "2.4.0",
}
}
data := base.Json{

View File

@ -162,9 +162,10 @@ func (d *Pan123) login() error {
SetHeaders(map[string]string{
"origin": "https://www.123pan.com",
"referer": "https://www.123pan.com/",
"user-agent": "Dart/2.19(dart:io)-alist",
"platform": "web",
"app-version": "3",
"user-agent": "123pan/v2.4.0(Android_7.1.2;Xiaomi)",
"platform": "android",
"app-version": "61",
"x-app-version": "2.4.0",
//"user-agent": base.UserAgent,
}).
SetBody(body).Post(SignIn)