feat(签名验签): 持续优化签名验签功能
build.yaml / build (push) Successful in 35s

This commit is contained in:
2026-07-08 14:51:39 +08:00
parent e4f542c429
commit 5c762cf1e6
4 changed files with 30 additions and 31 deletions
-14
View File
@@ -158,7 +158,6 @@ func (r *Reader) Doc() (*Document, error) {
if doc.Signatures == "" {
doc.Signatures = docAttr.Signatures
}
r.OFD.DocBody[0].DocInfo.DocID = "loaded"
if doc.CommonData.DocumentRes != "" {
r.loadRes(doc.CommonData.DocumentRes)
}
@@ -278,19 +277,6 @@ func (r *Reader) ResData(resLink string) ([]byte, error) {
return r.readFile(fullPath)
}
// DocRoots 获取所有文档根路径
// 返回: []string 路径列表
func (r *Reader) DocRoots() []string {
var roots []string
if r.OFD == nil {
return roots
}
for _, body := range r.OFD.DocBody {
roots = append(roots, body.DocRoot)
}
return roots
}
// Version 获取OFD版本号
// 返回: string 版本号
func (r *Reader) Version() string {