From 9f00a40145476e2813f0c1d611ba4f7185fc1cd9 Mon Sep 17 00:00:00 2001 From: link Date: Tue, 2 Nov 2021 22:26:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=86=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + aliyun/api.go | 4 ++-- main.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9480c34..7267dd7 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ 2. 通过文件名和文件大小判断是否重复。也就是说如果一个文件即使发生了更新,但其大小没有任何改变,是不会自动上传的 3. 不支持文件名包含 `/` 字符 4. 部分客户端兼容性不好 +5. 单列表最大文件数为200 # 免责声明 diff --git a/aliyun/api.go b/aliyun/api.go index 878c7c8..18bfebe 100644 --- a/aliyun/api.go +++ b/aliyun/api.go @@ -29,8 +29,8 @@ func GetList(token string, driveId string, parentFileId string) (model.FileListM postData := make(map[string]interface{}) postData["drive_id"] = driveId postData["parent_file_id"] = parentFileId - postData["limit"] = 100 - postData["all"] = true + postData["limit"] = 200 + postData["all"] = false postData["url_expire_sec"] = 1600 postData["image_thumbnail_process"] = "image/resize,w_400/format,jpeg" postData["image_url_process"] = "image/resize,w_1920/format,jpeg" diff --git a/main.go b/main.go index 975f3f8..99257e1 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func init() { cache.Init() } -var Version = "v1.0.12" +var Version = "v1.0.13" type Task struct { Id string `json:"id"`