🎨 Update av export

This commit is contained in:
Daniel 2023-09-26 09:43:48 +08:00
parent 376384d4e3
commit c3adbe6b52
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -261,8 +261,10 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
for k, v := range ial {
if strings.HasPrefix(k, NodeAttrNamePrefixAvKey) || strings.HasPrefix(k, NodeAttrNameAvs) {
for oldAvID, newAvID := range avIDs {
v = strings.ReplaceAll(v, oldAvID, newAvID)
n.SetIALAttr(k, v)
newKey := strings.ReplaceAll(k, oldAvID, newAvID)
newVal := strings.ReplaceAll(v, oldAvID, newAvID)
n.SetIALAttr(newKey, newVal)
n.RemoveIALAttr(k)
}
}
}