feat(数据接口): 统一数据源接口及全库命名
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-19 08:59:17 +08:00
1 parent d97c6f4e6f
commit 73889edefb
16 files changed
+175 -175

No files matched your search

+2 -2
View File
@@ -475,11 +475,11 @@ func (h *Host) call(ctx context.Context, name string, value any) (any, error) {
}
descriptor, _ := args["data"].(map[string]any)
key, _ := descriptor["nativeFile"].(string)
input, size, err := h.files.resolve(key)
source, size, err := h.files.resolve(key)
if err != nil {
return nil, err
}
_, err = io.Copy(writer, io.NewSectionReader(input, 0, size))
_, err = io.Copy(writer, io.NewSectionReader(source, 0, size))
return nil, err
case "fonts":
h.fontOnce.Do(h.readFonts)