File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,12 +161,12 @@ func (d *Pan123) login() error {
161161 }
162162 res , err := base .RestyClient .R ().
163163 SetHeaders (map [string ]string {
164- "origin" : "https://www.123pan.com" ,
165- "referer" : "https://www.123pan.com/" ,
166- "user-agent" : "Dart/2.19(dart:io)-alist" ,
164+ "origin" : "https://www.123pan.com" ,
165+ "referer" : "https://www.123pan.com/" ,
166+ // "user-agent": "Dart/2.19(dart:io)-alist",
167167 "platform" : "web" ,
168168 "app-version" : "3" ,
169- // "user-agent": base.UserAgent,
169+ "user-agent" : base .UserAgent ,
170170 }).
171171 SetBody (body ).Post (SignIn )
172172 if err != nil {
202202 "origin" : "https://www.123pan.com" ,
203203 "referer" : "https://www.123pan.com/" ,
204204 "authorization" : "Bearer " + d .AccessToken ,
205- "user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) alist-client " ,
205+ "user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" ,
206206 "platform" : "web" ,
207207 "app-version" : "3" ,
208208 //"user-agent": base.UserAgent,
You can’t perform that action at this time.
0 commit comments