This commit is contained in:
Jay 2018-12-11 11:53:27 +08:00
parent cd44078b17
commit e966ab64c2

View File

@ -145,10 +145,10 @@ func GetCommandList(c *context.Context) {
} }
cmdList := make([]map[string]interface{}, len(cmds)) cmdList := make([]map[string]interface{}, len(cmds))
for _, v := range cmds { for k, v := range cmds {
tmp := utils.ToMap(v) tmp := utils.ToMap(v)
tmp["group_name"] = v.GroupName tmp["group_name"] = v.GroupName
cmdList = append(cmdList, tmp) cmdList[k] = tmp
tmp = nil tmp = nil
} }