From 478930c77d0ae35f81391b2e3d7b0ac345ba63c6 Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 26 Feb 2020 17:01:37 +0800 Subject: [PATCH] fix ocean spawn --- core/chat/chat.go | 2 +- core/wiki/wiki.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/chat/chat.go b/core/chat/chat.go index d7e165e2..ed65319b 100644 --- a/core/chat/chat.go +++ b/core/chat/chat.go @@ -249,7 +249,7 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心", )) m.Log(ice.LOG_CREATE, "river: %v name: %v", river, arg[1]) // 添加用户 - m.Cmd("/river", river, "add", arg[2:]) + m.Cmd("/river", river, "add", m.Option(ice.MSG_USERNAME), arg[2:]) m.Echo(river) } }}, diff --git a/core/wiki/wiki.go b/core/wiki/wiki.go index 6c018b78..2bdfe66c 100644 --- a/core/wiki/wiki.go +++ b/core/wiki/wiki.go @@ -361,7 +361,7 @@ var Index = &ice.Context{Name: "wiki", Help: "文档中心", }}, "word": {Name: "word", Help: "语言文字", Meta: kit.Dict("remote", "pod", "display", "wiki/word"), List: kit.List( - kit.MDB_INPUT, "text", "name", "path", "value", "自然/编程/hi.shy", + kit.MDB_INPUT, "text", "path", "path", "value", "自然/编程/hi.shy", kit.MDB_INPUT, "button", "name", "执行", "action", "auto", kit.MDB_INPUT, "button", "name", "返回", "cb", "Last", ), Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {