This commit is contained in:
Daniel 2025-08-21 11:19:53 +08:00
parent 7d91781e8c
commit ed4cc1faf6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 8 additions and 0 deletions

View file

@ -1275,6 +1275,10 @@ func SearchAttributeView(keyword string, excludeAvIDs []string) (ret []*AvSearch
trees := filesys.LoadTrees(blockIDs)
for _, avBlock := range avBlocks {
if 1 > len(avBlock.BlockIDs) {
continue
}
parentResult := buildSearchAttributeViewResult(avSearchTmpResults, avBlock.BlockIDs[0], trees, excludeAvIDs)
if nil == parentResult {
continue

View file

@ -90,6 +90,10 @@ func BatchGetMirrorAttrViewBlocks(avIDs []string) (ret []*AvBlock) {
for blockID := range bts {
blockIDs = append(blockIDs, blockID)
}
if 1 > len(blockIDs) {
continue
}
avBlock := &AvBlock{
AvID: avID,
BlockIDs: blockIDs,