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

+3 -3
View File
@@ -221,11 +221,11 @@ func platformParseJSON(data []byte) map[string]any {
return result
}
// inputFromValue 读取浏览器二进制源
func (e *businessEngine) inputFromValue(value platformValue) (*ofdgo.Input, error) {
// sourceFromValue 读取浏览器二进制源
func (e *businessEngine) sourceFromValue(value platformValue) (*ofdgo.Source, error) {
data, err := e.bytesFromJS(value)
if err != nil {
return nil, err
}
return ofdgo.NewInput(bytes.NewReader(data), int64(len(data)))
return ofdgo.NewSource(bytes.NewReader(data), int64(len(data)))
}