|
@@ -44,15 +44,18 @@ func GetPageIndexesFromGn(pageIndex, pageSize int, modifyTime, indexId string) (
|
|
|
//if v.INDEXLEVELTHREE == `` {
|
|
|
// continue
|
|
|
//}
|
|
|
+
|
|
|
+ // 必须保证有一级目录
|
|
|
if v.INDEXLEVELONE == `` {
|
|
|
v.INDEXLEVELONE = `未分类`
|
|
|
}
|
|
|
- if v.INDEXLEVELTWO == `` {
|
|
|
- v.INDEXLEVELTWO = `未分类`
|
|
|
- }
|
|
|
- if v.INDEXLEVELTHREE == `` {
|
|
|
- v.INDEXLEVELTHREE = `未分类`
|
|
|
- }
|
|
|
+
|
|
|
+ //if v.INDEXLEVELTWO == `` {
|
|
|
+ // v.INDEXLEVELTWO = `未分类`
|
|
|
+ //}
|
|
|
+ //if v.INDEXLEVELTHREE == `` {
|
|
|
+ // v.INDEXLEVELTHREE = `未分类`
|
|
|
+ //}
|
|
|
|
|
|
list = append(list, gn.IndexInfo{
|
|
|
ClassifyNameOne: strings.TrimSpace(v.INDEXLEVELONE),
|