Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-21 15:10:31 +08:00
parent 5ec41ff6cb
commit 80faba6c75
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1894,7 +1894,12 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
if ast.NodeAttributeView == n.Type { if ast.NodeAttributeView == n.Type {
avIDs = append(avIDs, n.AttributeViewID) avIDs = append(avIDs, n.AttributeViewID)
} }
avs := n.IALAttr(av.NodeAttrNameAvs) avs := n.IALAttr(av.NodeAttrNameAvs)
if "" == avs {
return ast.WalkContinue
}
for _, avID := range strings.Split(avs, ",") { for _, avID := range strings.Split(avs, ",") {
avIDs = append(avIDs, strings.TrimSpace(avID)) avIDs = append(avIDs, strings.TrimSpace(avID))
} }
@ -1903,6 +1908,10 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
} }
avIDs = gulu.Str.RemoveDuplicatedElem(avIDs) avIDs = gulu.Str.RemoveDuplicatedElem(avIDs)
for _, avID := range avIDs { for _, avID := range avIDs {
if !ast.IsNodeIDPattern(avID) {
continue
}
exportAv(avID, exportStorageAvDir, exportDir, assetPathMap) exportAv(avID, exportStorageAvDir, exportDir, assetPathMap)
} }