refactor(重构提升): 完善水印接口与编辑稳定性
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-09-29 23:47:50 +08:00
1 parent accd0a2973
commit fef7e75920
8 files changed
+266 -143

No files matched your search

+4 -1
View File
@@ -78,8 +78,11 @@ func (e *Editor) compressResourceParts(parts map[string][]byte, reader *Reader,
return err
}
}
resource, safe := refs.scan(input, name)
resource, safe := refs.scan(imageInput{ReadCloser: input, context: e.output.ctx}, name)
input.Close()
if err := e.output.ctx.Err(); err != nil {
return err
}
if !safe {
return nil
}