diff --git a/base/web/serve.go b/base/web/serve.go index a5097ef5..85f0145d 100644 --- a/base/web/serve.go +++ b/base/web/serve.go @@ -136,7 +136,6 @@ func _serve_handle(key string, cmd *ice.Command, msg *ice.Message, w http.Respon } // 用户请求 - msg.Option("name", "") msg.Option(mdb.CACHE_LIMIT, "10") msg.Option(ice.MSG_OUTPUT, "") msg.Option(ice.MSG_METHOD, r.Method) diff --git a/core/code/inner.go b/core/code/inner.go index 89ad3ac1..c0678a8e 100644 --- a/core/code/inner.go +++ b/core/code/inner.go @@ -111,6 +111,7 @@ func init() { "log", "true", "err", "true", "md", "true", "conf", "true", "toml", "true", + "ini", "true", ), "plug", kit.Dict( "s", kit.Dict( diff --git a/init.go b/init.go index d1762246..ac3c4685 100644 --- a/init.go +++ b/init.go @@ -152,6 +152,7 @@ func Run(arg ...string) string { Index.server = frame Pulse.root = Pulse + Pulse.Option("name", "") Pulse.Option("cache.limit", "30") Pulse.Option("begin_time", Pulse.Time()) switch kit.Select("", arg, 0) { diff --git a/misc/zsh/sess.go b/misc/zsh/sess.go index 20c0490f..3fea1a16 100644 --- a/misc/zsh/sess.go +++ b/misc/zsh/sess.go @@ -31,6 +31,7 @@ func init() { Commands: map[string]*ice.Command{ SESS: {Name: "sess hash auto prunes", Help: "会话流", Action: map[string]*ice.Action{ mdb.PRUNES: {Name: "prunes", Help: "清理", Hand: func(m *ice.Message, arg ...string) { + m.Option(mdb.FIELDS, m.Conf(m.Prefix(SESS), kit.META_FIELD)) m.Cmdy(mdb.PRUNES, m.Prefix(SESS), "", mdb.HASH, kit.MDB_STATUS, "logout") }}, }, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { diff --git a/misc/zsh/sync.go b/misc/zsh/sync.go index 48fe6faa..33a3fcec 100644 --- a/misc/zsh/sync.go +++ b/misc/zsh/sync.go @@ -10,7 +10,9 @@ import ( "strings" ) -const SHELL = "shell" +const ( + SHELL = "shell" +) const SYNC = "sync" func init() {