Skip to content

Commit

Permalink
fix: update api version&change ua, close alist-org/alist#7198
Browse files Browse the repository at this point in the history
  • Loading branch information
SheltonZhu authored Sep 18, 2024
2 parents 8ace8be + a0b9c42 commit bd76b75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/driver/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package driver

const (
UADefalut = "Mozilla/5.0"
UA115Browser = "Mozilla/5.0 115Browser/23.9.3.2"
UA115Browser = "Mozilla/5.0 115Browser/27.0.3.7"
UA115Disk = "Mozilla/5.0 115disk/30.1.0"
UA115Desktop = "Mozilla/5.0 115Desktop/2.0.3.6"
UAIosApp = "Mozilla/5.0; Darwin/10.0; UDown/30.1.0"
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestLogin(t *testing.T) {
func teardown(t *testing.T) func(t *testing.T) {
cr := &Credential{}
assert.Nil(t, cr.FromCookie(cookieStr))
client = New(UA(UA115Desktop), WithDebug(), WithTrace()).ImportCredential(cr)
client = New(UA(UA115Browser), WithDebug(), WithTrace()).ImportCredential(cr)
assert.Nil(t, client.LoginCheck())
return func(t *testing.T) {}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (c *Pan115Client) RapidUpload(fileSize int64, fileName, dirID, preID, fileI

const (
md5Salt = "Qclm8MGWUv59TnrR0XPg"
appVer = "2.0.3.6"
appVer = "27.0.3.7"
)

func (c *Pan115Client) UploadDigestRange(r io.ReadSeeker, rangeSpec string) (result string, err error) {
Expand Down

0 comments on commit bd76b75

Please sign in to comment.