mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 06:01:16 +00:00
feat: log shows request conversion
This commit is contained in:
@@ -476,10 +476,17 @@ export const useLogsData = () => {
|
||||
});
|
||||
}
|
||||
}
|
||||
if (other?.request_path) {
|
||||
if (isAdminUser) {
|
||||
const requestConversionChain = other?.request_conversion;
|
||||
const chain = Array.isArray(requestConversionChain)
|
||||
? requestConversionChain.filter(Boolean)
|
||||
: [];
|
||||
expandDataLocal.push({
|
||||
key: t('请求路径'),
|
||||
value: other.request_path,
|
||||
key: t('请求转换'),
|
||||
value:
|
||||
chain.length > 1
|
||||
? `${chain.join(' -> ')}`
|
||||
: t('原生格式'),
|
||||
});
|
||||
}
|
||||
if (isAdminUser) {
|
||||
|
||||
@@ -2091,6 +2091,9 @@
|
||||
"请求结束后多退少补": "Adjust after request completion",
|
||||
"请求超时,请刷新页面后重新发起 GitHub 登录": "Request timed out, please refresh and restart GitHub login",
|
||||
"请求路径": "Request path",
|
||||
"请求转换": "Request conversion",
|
||||
"原生格式": "Native format",
|
||||
"转换": "Convert",
|
||||
"请求预扣费额度": "Pre-deduction quota for requests",
|
||||
"请点击我": "Please click me",
|
||||
"请确认以下设置信息,点击\"初始化系统\"开始配置": "Please confirm the following settings information, click \"Initialize system\" to start configuration",
|
||||
|
||||
@@ -2077,6 +2077,9 @@
|
||||
"请求结束后多退少补": "请求结束后多退少补",
|
||||
"请求超时,请刷新页面后重新发起 GitHub 登录": "请求超时,请刷新页面后重新发起 GitHub 登录",
|
||||
"请求路径": "请求路径",
|
||||
"请求转换": "请求转换",
|
||||
"原生格式": "原生格式",
|
||||
"转换": "转换",
|
||||
"请求预扣费额度": "请求预扣费额度",
|
||||
"请点击我": "请点击我",
|
||||
"请确认以下设置信息,点击\"初始化系统\"开始配置": "请确认以下设置信息,点击\"初始化系统\"开始配置",
|
||||
|
||||
Reference in New Issue
Block a user