Skip to content

Commit

Permalink
fix: try fix 115 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MondoGao committed Sep 17, 2024
1 parent 123287a commit 06e839f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Docker meta
id: meta
Expand Down
4 changes: 2 additions & 2 deletions drivers/115/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (d *Pan115) getFiles(fileId string) ([]FileObj, error) {
}

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

func (c *Pan115) DownloadWithUA(pickCode, ua string) (*driver115.DownloadInfo, error) {
Expand Down Expand Up @@ -161,7 +161,7 @@ func (d *Pan115) rapidUpload(fileSize int64, fileName, dirID, preID, fileID stri

signKey, signVal := "", ""
for retry := true; retry; {
t := driver115.Now()
t := driver115.NowMilli()

if encodedToken, err = ecdhCipher.EncodeToken(t.ToInt64()); err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go 1.22.4
// See: https://github.com/alist-org/alist/issues/7198
replace github.com/SheltonZhu/115driver => ./mod_replacements/115driver


require (
github.com/SheltonZhu/115driver v1.0.27
github.com/Xhofe/go-cache v0.0.0-20240804043513-b1a71927bc21
Expand Down

0 comments on commit 06e839f

Please sign in to comment.