From 10a18c9af6df35d298fa737ded5a989064841497 Mon Sep 17 00:00:00 2001 From: Mondo Date: Tue, 17 Sep 2024 15:29:57 -0500 Subject: [PATCH] fix: try fix 115 upload --- .github/workflows/build_docker.yml | 2 ++ drivers/115/util.go | 4 ++-- go.mod | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index 8f37688d07f9..d2b54fa8a55a 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -17,6 +17,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: recursive - name: Docker meta id: meta diff --git a/drivers/115/util.go b/drivers/115/util.go index 992502c42c1f..af5cc7045e73 100644 --- a/drivers/115/util.go +++ b/drivers/115/util.go @@ -74,7 +74,7 @@ func (d *Pan115) getFiles(fileId string) ([]FileObj, error) { } const ( - appVer = "2.0.3.6" + appVer = "2.0.10.2" ) func (c *Pan115) DownloadWithUA(pickCode, ua string) (*driver115.DownloadInfo, error) { @@ -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 diff --git a/go.mod b/go.mod index 4bf02d60cc0c..93844eba7d6e 100644 --- a/go.mod +++ b/go.mod @@ -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