diff --git a/backend/src/routes/noco/noco-life.ts b/backend/src/routes/noco/noco-life.ts index 7405160..738fd7a 100644 --- a/backend/src/routes/noco/noco-life.ts +++ b/backend/src/routes/noco/noco-life.ts @@ -108,7 +108,7 @@ app.route({ }).define(async (ctx) => { const id = ctx.query.id; const ids = ctx.query.ids || []; - if (!id || ids.length === 0) { + if (!id && ids.length === 0) { ctx.throw(400, '缺少参数 id'); } if (ids.length === 0 && id) {