liujiandao
2024-03-28 778fd95e00e9a68b0e0e67c5d7d07d94ba365dd4
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)
      }
   }