From 0fd0b878427aa0e585e133f37769a7147fd53da8 Mon Sep 17 00:00:00 2001 From: shaoying Date: Sun, 16 Aug 2020 19:23:41 +0800 Subject: [PATCH] opt some --- misc/es/es.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/es/es.go b/misc/es/es.go index cdef3bd2..90121459 100644 --- a/misc/es/es.go +++ b/misc/es/es.go @@ -57,7 +57,7 @@ var Index = &ice.Context{Name: ES, Help: "搜索", }) }}, - "GET": {Name: "GET 查看:button cmd=/", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + "GET": {Name: "GET 查看:button cmd:text=/", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { if pod := m.Option("_pod"); pod != "" { m.Option("_pod", "") m.Cmdy(web.SPACE, pod, m.Prefix(cmd), arg) @@ -72,7 +72,7 @@ var Index = &ice.Context{Name: ES, Help: "搜索", m.Echo(kit.Formats(kit.UnMarshal(m.Cmdx(web.SPIDE, web.SPIDE_DEV, web.SPIDE_RAW, web.SPIDE_GET, kit.MergeURL2(m.Conf(ES, "meta.address"), kit.Select("/", arg, 0)))))) }}, - "CMD": {Name: "CMD 执行:button method:select=GET|PUT|POST|DELETE cmd=/ data:textarea", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + "CMD": {Name: "CMD 执行:button method:select=GET|PUT|POST|DELETE cmd:text=/ data:textarea", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { if pod := m.Option("_pod"); pod != "" { m.Option("_pod", "") m.Cmdy(web.SPACE, pod, m.Prefix(cmd), arg)