From fef3b892d6027338dd3fd32c87a675384d262197 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Thu, 1 Oct 2026 11:10:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=20face=5Fcluster=20API=20=E7=AB=AF=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 改用 POST /api/v1/file/:uuid/json/face_cluster - 替换旧的 GET /api/v1/cluster-results - 返回正确的 cluster 数据:status, clusters, frames - 修复 face dedup 按钮无法工作的问题 - 添加 get_file_processor_json API (通用端点) --- src/api/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index e7f2407..9e96ea6 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -543,7 +543,7 @@ case 'search_keyword': { return { url: `/api/v1/file/${a.fileUuid}/cluster-agent`, method: 'POST', body: { confirm: true }, timeout: 600000 } } case 'get_cluster_results': { - return { url: `/api/v1/cluster-results?file_hash=${a.fileHash}&include_trace_ids=false`, method: 'GET' } + return { url: `/api/v1/file/${a.fileHash}/json/face_cluster`, method: 'POST', body: {} } } case 'get_similar_face_groups': { const params = new URLSearchParams() @@ -566,6 +566,9 @@ case 'search_keyword': { case 'get_processor_json': { return { url: `/api/v1/processor-json?file_hash=${a.fileHash}&processor=${a.processor}`, method: 'GET' } } + case 'get_file_processor_json': { + return { url: `/api/v1/file/${a.fileUuid}/json/${a.processor}`, method: 'POST', body: {} } + } case 'create_pending_identity': { return { url: '/api/v1/identities/pending', method: 'POST', body: { file_uuid: a.fileUuid, trace_id: a.traceId, face_id: a.faceId, cluster_id: a.clusterId, trace_count: a.traceCount } } }