feat: 优化分类页内容管理

This commit is contained in:
R524809
2026-06-15 15:39:46 +08:00
parent 25a37fc5e2
commit 11469f7dca
5 changed files with 47 additions and 11 deletions
+4 -1
View File
@@ -19,6 +19,7 @@ exports.main = async (event) => {
const category = String(event.category || '').trim();
const status = String(event.status || '').trim();
const rawStats = event.rawStats === true;
// Build query condition
const where = {};
@@ -61,7 +62,9 @@ exports.main = async (event) => {
else if (item.status === 'hidden') stats.hidden++;
}
mergeSeedStats(data);
if (!rawStats) {
mergeSeedStats(data);
}
return {
success: true,