fix: 修正删除API Key时更新数据的字段名称

This commit is contained in:
AAEE86
2025-10-14 10:09:47 +08:00
parent 38c61e1018
commit 582348d615
2 changed files with 3 additions and 2 deletions

View File

@@ -1817,7 +1817,8 @@
<li>新会话将随机命中一个 Key并在会话有效期内保持粘性。</li>
<li>若某 Key 失效,会自动切换到剩余可用 Key最大化成功率。</li>
<li>
若上游返回 4xx 错误码,该 Key 会被自动标记为异常;全部 Key 异常后账号将暂停调度。
若上游返回 4xx 错误码,该 Key 会被自动标记为异常;全部 Key
异常后账号将暂停调度。
</li>
</ul>
</div>

View File

@@ -341,7 +341,7 @@ const deleteApiKey = async (apiKey, index) => {
try {
// 准备更新数据:删除指定的 key
const updateData = {
apiKeys: [apiKey.key],
removeApiKeys: [apiKey.key],
apiKeyUpdateMode: 'delete'
}