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 }} 个账号