liujiandao
2024-03-30 aeed976c2999e2cea097cdee38d8baeefe323f3d
controllers/location.go
@@ -103,7 +103,10 @@
            tree = append(tree, location)
            continue
         }
         m[location.ParentId].Children = make([]*models.Location, 0)
         if m[location.ParentId].Children == nil {
            m[location.ParentId].Children = make([]*models.Location, 0)
         }
         m[location.ParentId].Children = append(m[location.ParentId].Children, location)
      }
   }