From 0726106818a69f9409f5c77c72f72197c693d076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 12 Sep 2026 13:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=9B=BE=E7=89=87=E5=88=86=E7=A6=BB?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=AE=BE=E7=BD=AE=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原图编辑 HTTP 请求限制为 120 秒,避免工作流永久阻塞 --- .../src/ui_editor/commands/separation/workflow/extract.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/extract.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/extract.rs index 204d9141d..b359fb32e 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/extract.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/extract.rs @@ -69,6 +69,7 @@ async fn raw_extract_inner( .map_err(|error| format!("转换源图任务失败:{error}"))?? }; let client = crate::http_client::agc_main_site_client_builder() + .timeout(std::time::Duration::from_secs(120)) .build() .map_err(|error| format!("创建图片编辑客户端失败:{error}"))?; let url = format!(