mirror of https://github.com/Xhofe/alist
pull/7325/head
parent
18e1656786
commit
b240169726
|
@ -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{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue