From 0b0387acb37e731aa5fa7ced4f57303d5ec347a7 Mon Sep 17 00:00:00 2001 From: MarSeventh <1193267292@qq.com> Date: Thu, 12 Jun 2025 10:30:28 +0800 Subject: [PATCH] Bug: fix integrity problem of list api --- README.md | 14 +++++++------- functions/api/manage/list.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 38606873..7bec9ed2 100644 --- a/README.md +++ b/README.md @@ -119,15 +119,9 @@ ## 最近更新 -Add Features: - -- 增加公告功能 - Fix Bugs: -- 修复后台图片名过长遮盖图片的问题 -- 优化部分页面显示效果 -- 修复 Docker 镜像无法访问 https 外链的问题 +- 修复`list`接口返回数据完整性的问题 @@ -137,6 +131,12 @@ Fix Bugs: 更新日志 +## 2025.6.12 + +Fix Bugs: + +- 修复`list`接口返回数据完整性的问题 + ## 2025.5.23 Add Features: diff --git a/functions/api/manage/list.js b/functions/api/manage/list.js index 417f946b..1fb62ba1 100644 --- a/functions/api/manage/list.js +++ b/functions/api/manage/list.js @@ -95,7 +95,7 @@ async function getAllRecords(env, dir) { const filteredRecords = response.keys.filter(item => !item.name.startsWith("manage@")); allRecords.push(...filteredRecords); - if (!cursor || filteredRecords.length < limit) { + if (!cursor) { break; } }