feat: 优化分类页内容管理
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user