From 29e0fcbd433a02a3cb56903070059cf8e13ef3b7 Mon Sep 17 00:00:00 2001 From: admin <362324317@qq.com> Date: Sun, 17 May 2026 04:40:53 +0800 Subject: [PATCH] v0.3.4: redis_status returns Chinese labels for frontend color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - db-status endpoint: redis_status returns 已连接/未连接/错误 instead of English - Frontend compares k.redis_status === "已连接" → green text-success badge - English connected was not matching, always showed yellow text-warning --- VERSION | 2 +- source_clean/src/routes/admin.routes.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 1c09c74..42045ac 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.3 +0.3.4 diff --git a/source_clean/src/routes/admin.routes.ts b/source_clean/src/routes/admin.routes.ts index e1f1ce7..81d987a 100644 --- a/source_clean/src/routes/admin.routes.ts +++ b/source_clean/src/routes/admin.routes.ts @@ -425,9 +425,9 @@ router.get('/admin/db-status', async (_req: Request, res: Response) => { let redis_url = getSystemConfig('redis_url') || ''; try { const testResult = await testRedisConnection(redis_url); - redis_status = testResult.ok ? 'connected' : 'disconnected'; + redis_status = testResult.ok ? '已连接' : '未连接'; } catch { - redis_status = 'error'; + redis_status = '错误'; } res.json({