修复抠图失败阶段被外层覆盖为 aliyun_segment

segment_uploaded_input_to_rgba 内部已为各失败路径标记精确阶段
(result_download/result_decode/result_validate),外层再次
with_failure_stage("aliyun_segment") 会无条件覆盖,导致审计阶段失真。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 12:03:04 +00:00
parent 7bce98439e
commit 646d29063f
+1 -2
View File
@@ -464,8 +464,7 @@ impl MattingClient {
let result_image = self
.segment_uploaded_input_to_rgba(image_url, source_dims, upload_dims)
.await
.map_err(|error| error.with_failure_stage("aliyun_segment"))?;
.await?;
if upload_dims == source_dims {
return encode_rgba_png(&result_image)
.map_err(|error| error.with_failure_stage("result_encode"));