This commit is contained in:
Daniel 2024-06-27 22:00:27 +08:00
parent 42d27a82a1
commit d65ef3cd7c
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -49,10 +49,9 @@ func GetMirrorAttrViewBlockIDs(avID string) (ret []string) {
}
blockIDs := avBlocks[avID]
for _, blockID := range blockIDs {
if nil != GetBlockTree(blockID) {
ret = append(ret, blockID)
}
bts := GetBlockTrees(blockIDs)
for blockID := range bts {
ret = append(ret, blockID)
}
return
}
@ -87,11 +86,8 @@ func BatchGetMirrorAttrViewBlocks(avIDs []string) (ret []*AvBlock) {
for _, avID := range avIDs {
var blockIDs []string
for _, blockID := range avBlocks[avID] {
if nil == GetBlockTree(blockID) {
continue
}
bts := GetBlockTrees(avBlocks[avID])
for blockID := range bts {
blockIDs = append(blockIDs, blockID)
}
avBlock := &AvBlock{