From 63e853641bfe82ad3c57060ffbb9482c1aae3f16 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 12 Dec 2025 11:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E5=8F=AA=E4=BC=A0?= =?UTF-8?q?=E5=85=A5id=E5=8F=82=E6=95=B0=E6=97=B6=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/routes/noco/noco-life.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {