From e675c5878ecc802e5c3f4fee130293cf7d694842 Mon Sep 17 00:00:00 2001 From: shaw Date: Sat, 27 Sep 2025 23:07:39 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ src/routes/admin.js | 2 +- web/admin-spa/src/views/DashboardView.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 021c92eb..da46c13d 100644 --- a/README.md +++ b/README.md @@ -447,6 +447,8 @@ env_key = "CRS_OAI_KEY" export CRS_OAI_KEY="后台创建的API密钥" ``` +> ⚠️ 在通过 Nginx 反向代理 CRS 服务并使用 Codex CLI 时,需要在 http 块中添加 underscores_in_headers on;。因为 Nginx 默认会移除带下划线的请求头(如 session_id),一旦该头被丢弃,多账号环境下的粘性会话功能将失效。 + ### 5. 第三方工具API接入 本服务支持多种API端点格式,方便接入不同的第三方工具(如Cherry Studio等)。 diff --git a/src/routes/admin.js b/src/routes/admin.js index 12c19769..c46a206b 100644 --- a/src/routes/admin.js +++ b/src/routes/admin.js @@ -5669,7 +5669,7 @@ router.get('/account-usage-trend', authenticateAdmin, async (req, res) => { const topAccounts = Array.from(accountCostTotals.entries()) .sort((a, b) => b[1] - a[1]) - .slice(0, 30) + .slice(0, 20) .map(([accountId]) => accountId) return res.json({ diff --git a/web/admin-spa/src/views/DashboardView.vue b/web/admin-spa/src/views/DashboardView.vue index 7791d77c..6a19cd24 100644 --- a/web/admin-spa/src/views/DashboardView.vue +++ b/web/admin-spa/src/views/DashboardView.vue @@ -659,7 +659,7 @@ - 显示成本前 {{ accountUsageTrendData.topAccounts.length }} 个账号 + 显示消耗排名前 {{ accountUsageTrendData.topAccounts.length }} 个账号