From 6e8e01196c6356491a9df47da537c04b30dd8640 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Sun, 29 Mar 2026 09:28:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9C=81=E4=BB=BD=E5=9B=BE=E8=A1=A8"?= =?UTF-8?q?=E6=9C=AA=E7=9F=A5"=E5=90=88=E5=85=A5"=E5=85=B6=E4=BB=96"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- src/server/routes/vehicles.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/routes/vehicles.ts b/src/server/routes/vehicles.ts index 614f1ee..e1eb6fe 100644 --- a/src/server/routes/vehicles.ts +++ b/src/server/routes/vehicles.ts @@ -1060,9 +1060,10 @@ app.get('/region-chart', async (c) => { } } - // 分离"其他",对非"其他"排序取 Top N,剩余全部合入"其他" - const otherCount = counts.get('其他') || 0; + // 分离"其他"和"未知",对剩余排序取 Top N,其余全部合入"其他" + const otherCount = (counts.get('其他') || 0) + (counts.get('未知') || 0); counts.delete('其他'); + counts.delete('未知'); const sorted = Array.from(counts.entries()) .map(([name, value]) => ({ name, value }))