fix
This commit is contained in:
parent
17dc892c07
commit
7c065901c4
|
@ -338,7 +338,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
|
|||
parent.ChildTagList = append(parent.ChildTagList, tagItem)
|
||||
//排序
|
||||
sort.SliceStable(parent.ChildTagList, func(i, j int) bool {
|
||||
return parent.ChildTagList[i].Sort < parent.ChildTagList[j].Sort
|
||||
return parent.ChildTagList[i].Sort > parent.ChildTagList[j].Sort
|
||||
})
|
||||
mapTagLevel[parentPrefix] = parent
|
||||
}
|
||||
|
@ -366,7 +366,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
|
|||
}
|
||||
//排序
|
||||
sort.SliceStable(rspList, func(i, j int) bool {
|
||||
return rspList[i].Sort < rspList[j].Sort
|
||||
return rspList[i].Sort > rspList[j].Sort
|
||||
})
|
||||
return rspList, productCount
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user