diff --git a/base/web/dream.go b/base/web/dream.go index 7ac630df..28f53336 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -23,6 +23,9 @@ import ( ) func _dream_list(m *ice.Message) *ice.Message { + if ice.Info.NodeType == WORKER { + return m + } list := m.CmdMap(SPACE, mdb.NAME) mdb.HashSelect(m).Table(func(value ice.Maps) { if space, ok := list[value[mdb.NAME]]; ok { diff --git a/core/chat/script.go b/core/chat/script.go index cee4deb1..523cd63c 100644 --- a/core/chat/script.go +++ b/core/chat/script.go @@ -12,7 +12,7 @@ func init() { Index.MergeCommands(ice.Commands{ SCRIPT: {Name: "script zone id auto", Help: "脚本化", Icon: "script.png", Actions: ice.MergeActions(ice.Actions{ mdb.INSERT: {Name: "insert zone space index"}, - }, mdb.ImportantZoneAction(mdb.FIELDS, "time,id,space,index,play,status,style")), Hand: func(m *ice.Message, arg ...string) { + }, mdb.ImportantZoneAction(mdb.FIELDS, "time,id,space,index,play,status,style"), mdb.ExportZoneAction()), Hand: func(m *ice.Message, arg ...string) { if mdb.ZoneSelect(m.Options(mdb.CACHE_LIMIT, "30"), arg...).Display(""); len(arg) == 0 { m.PushAction(cli.RECORD, mdb.REMOVE).Action(mdb.CREATE, cli.STOP) } else {