From 6fe7a91b27931609a39a4d10f9c04d1f0bfd3778 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 11 Dec 2018 12:02:57 +0800 Subject: [PATCH] fix struct --- router/api/line.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/api/line.go b/router/api/line.go index 6fd7183..f2a1f93 100644 --- a/router/api/line.go +++ b/router/api/line.go @@ -146,7 +146,7 @@ func GetCommandList(c *context.Context) { cmdList := make([]map[string]interface{}, len(cmds)) for k, v := range cmds { - tmp := utils.ToMap(v) + tmp := utils.ToMap(v.Commands) tmp["group_name"] = v.GroupName cmdList[k] = tmp tmp = nil