From eff36efe1bfc1512fe3198b2cf8d5702b725c4a6 Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Mon, 30 Nov 2026 00:42:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=9B=BE=E4=BD=8D=E5=9B=BE?= =?UTF-8?q?=E7=89=87=EF=BC=9A=E6=9C=AA=E5=87=BA=E5=AE=8C=E7=9A=84=E5=80=99?= =?UTF-8?q?=E9=80=89=E5=A6=82=E5=AE=9E=E5=9B=9E=E6=8A=A5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=EF=BC=8C=E5=90=8C=E8=8A=B1=E8=89=B2=E5=80=99=E9=80=89=E5=8F=AF?= =?UTF-8?q?=E8=B7=A8=E5=9B=BE=E4=BD=8D=E6=9F=A5=E7=9C=8B=EF=BC=8C=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E6=9F=A5=E7=9C=8B=E4=B8=8D=E9=99=90=E4=BA=8E=E5=A7=94?= =?UTF-8?q?=E6=89=98=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/detail-agent-pi/src/production-operations.mjs | 4 +++- .../apps/photocraft/src/jiansun_canvas_workspace.rs | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/detail-agent-pi/src/production-operations.mjs b/apps/detail-agent-pi/src/production-operations.mjs index feb46e5a..dc2d26f6 100644 --- a/apps/detail-agent-pi/src/production-operations.mjs +++ b/apps/detail-agent-pi/src/production-operations.mjs @@ -1335,7 +1335,9 @@ export async function openProductionOperations(host,{target=host.productionGoal, const grouped=targets.size>1; const groupTargets=[...targets.values()]; const groupCall=(name,{slotId:reference=slot.id,outputId:destination=outputId,...args},activeSignal)=>{ - const target=targets.get(JSON.stringify([destination,reference])); + // 查看不改动任何内容,可看任一图位;裁切和采用只作用于本次委托的图位组。 + const target=targets.get(JSON.stringify([destination,reference])) + ??(name==='read_slot_images'?{outputId:destination,variantId,slotId:reference}:undefined); if(!target)throw Error('目标图位不在本次委托的图位组内'); if(destination===outputId){ if(name==='adopt_production_image'&&canvasReady)return {accepted:false,reason:'canvas_inactive',...target}; diff --git a/apps/detail-photocraft/apps/photocraft/src/jiansun_canvas_workspace.rs b/apps/detail-photocraft/apps/photocraft/src/jiansun_canvas_workspace.rs index b0fab51f..96948ba4 100644 --- a/apps/detail-photocraft/apps/photocraft/src/jiansun_canvas_workspace.rs +++ b/apps/detail-photocraft/apps/photocraft/src/jiansun_canvas_workspace.rs @@ -2173,8 +2173,13 @@ impl Backend { let mut candidate_original = None; let mut candidate_file = None; if let Some((candidate, record)) = candidate_id.zip(candidate_record) { - if !candidate_available(&record) || record["binding"]["slotId"] != slot || record["binding"]["variantId"] != variant_id { - return Err("候选图未就绪或不属于该图位".into()); + // 候选还没出完或已退役时如实回报状态;同花色其他图位的候选可放进本图位查看,便于复用和裁切。 + if !candidate_available(&record) { + return Ok(json!({"candidateId":candidate,"candidateReady":false,"phase":record["phase"], + "retired":!record["retirement"].is_null(),"candidateSlotId":record["binding"]["slotId"]})); + } + if record["binding"]["variantId"] != variant_id { + return Err("候选图属于其他花色,不能放进本图位".into()); } let inspect_ground = is_production_review && target["groundContactDetail"] == true; let inspect_edges = is_production_review && target["sceneEdgeDetails"] == true;