diff --git a/base/web/stream.go b/base/web/stream.go index 035ca5e7..c1078bbf 100644 --- a/base/web/stream.go +++ b/base/web/stream.go @@ -9,6 +9,7 @@ import ( "shylinux.com/x/icebergs/base/ctx" "shylinux.com/x/icebergs/base/gdb" "shylinux.com/x/icebergs/base/mdb" + "shylinux.com/x/icebergs/base/nfs" "shylinux.com/x/icebergs/base/web/html" kit "shylinux.com/x/toolkits" ) @@ -67,9 +68,9 @@ func StreamPush(m *ice.Message, arg ...string) { AdminCmd(m, STREAM, PUSH, m.Option(ice.MSG_USERPOD), m.ShortKey(), arg) } func StreamPushRefresh(m *ice.Message, arg ...string) { - StreamPush(m.Spawn(ice.Maps{"space.noecho": ice.TRUE}), kit.Simple(html.REFRESH, arg)...) - if strings.Contains(m.Option(ice.MSG_USERPOD), ".") { - AdminCmd(m.Spawn(ice.Maps{"space.noecho": ice.TRUE}), SPACE, ice.DEV, STREAM, PUSH, m.Option(ice.MSG_USERPOD), m.ShortKey(), kit.Simple(html.REFRESH, arg)) + StreamPush(m.Spawn(ice.Maps{ice.SPACE_NOECHO: ice.TRUE}), kit.Simple(html.REFRESH, arg)...) + if strings.Contains(m.Option(ice.MSG_USERPOD), nfs.PT) { + AdminCmd(m.Spawn(ice.Maps{ice.SPACE_NOECHO: ice.TRUE}), SPACE, ice.DEV, STREAM, PUSH, m.Option(ice.MSG_USERPOD), m.ShortKey(), kit.Simple(html.REFRESH, arg)) } } func StreamPushRefreshConfirm(m *ice.Message, arg ...string) { diff --git a/core/wiki/portal.go b/core/wiki/portal.go index 86231788..00b0d373 100644 --- a/core/wiki/portal.go +++ b/core/wiki/portal.go @@ -71,7 +71,6 @@ const PORTAL = "portal" func init() { Index.MergeCommands(ice.Commands{ PORTAL: {Name: "portal path auto", Help: "官网", Role: aaa.VOID, Actions: ice.MergeActions(ice.Actions{ - ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { aaa.White(m, ice.VAR_PORTAL) }}, ctx.RUN: {Hand: func(m *ice.Message, arg ...string) { if p := path.Join(ice.VAR_PORTAL, path.Join(arg...)); (m.Option(ice.DEBUG) == ice.TRUE || !nfs.ExistsFile(m, p)) && aaa.Right(m.Spawn(), arg) { ctx.Run(m, arg...)