fix: 完整显示 Sub2API 上游账号名称

This commit is contained in:
Codex
2026-07-14 12:47:33 +02:00
parent aed6cba625
commit 0cfbdea031
@@ -541,7 +541,7 @@ function renderFeedbackReport(report: Record<string, unknown> | null, options: F
["#", "AT", "GAP_S", "STATUS", "DURATION", "MODEL", "ACCOUNT", "ATTRIBUTION"],
...timeline.map((item, index) => [
String(index + 1), shortIso(item.at), textValue(item.gapSeconds), textValue(item.statusCode ?? item.kind), textValue(item.durationMs),
shorten(textValue(item.model), 18), shorten(`${textValue(item.accountName)}#${textValue(item.accountId)}`, 28), textValue(item.attribution),
shorten(textValue(item.model), 18), `${textValue(item.accountName)}#${textValue(item.accountId)}`, textValue(item.attribution),
]),
]));
lines.push("");
@@ -557,7 +557,7 @@ function renderFeedbackReport(report: Record<string, unknown> | null, options: F
lines.push(renderTable([
["ACCOUNT", "STATUS", "SCHED", "IN_USE", "QUEUE", "CAP", "AVAILABLE", "PROXY", "P_STATUS"],
...accounts.map((item) => [
shorten(`${textValue(item.name)}#${textValue(item.id)}`, 32), textValue(item.status), textValue(item.schedulable),
`${textValue(item.name)}#${textValue(item.id)}`, textValue(item.status), textValue(item.schedulable),
textValue(item.currentInUse), textValue(item.waitingInQueue), textValue(item.maxCapacity), textValue(item.available),
shorten(`${textValue(item.proxyName)}#${textValue(item.proxyId)}`, 24), textValue(item.proxyStatus),
]),