diff --git a/app/hdl/member_center/hdl_level__management.go b/app/hdl/member_center/hdl_level__management.go index eda6d1f..4bcb6b2 100644 --- a/app/hdl/member_center/hdl_level__management.go +++ b/app/hdl/member_center/hdl_level__management.go @@ -47,7 +47,7 @@ func GetLevelList(c *gin.Context) { countMap[utils.StrToInt(res["level"])] = res["total"] } - list := make([]md2.LevelListNode, 0) + list := make([]md2.LevelListNode, len(levels)) for i, level := range levels { list[i].LevelWeight = level.LevelWeight list[i].LevelID = level.Id