Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
commit
5b0b45b141
|
@ -335,7 +335,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
parent.ChildTagList = append(parent.ChildTagList, tagItem)
|
parent.ChildTagList = append(parent.ChildTagList, tagItem)
|
||||||
//排序子菜单
|
//排序
|
||||||
sort.SliceStable(parent.ChildTagList, func(i, j int) bool {
|
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
|
||||||
})
|
})
|
||||||
|
@ -363,7 +363,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
|
||||||
productCount += len(mapTagLevel[prefix].TagProductList)
|
productCount += len(mapTagLevel[prefix].TagProductList)
|
||||||
rspList = append(rspList, *mapTagLevel[prefix])
|
rspList = append(rspList, *mapTagLevel[prefix])
|
||||||
}
|
}
|
||||||
//排序主菜单
|
//排序
|
||||||
sort.SliceStable(rspList, func(i, j int) bool {
|
sort.SliceStable(rspList, func(i, j int) bool {
|
||||||
return rspList[i].Sort < rspList[j].Sort
|
return rspList[i].Sort < rspList[j].Sort
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user