From fc61c4d320457f672f6815801e9db5579b8131f1 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 23 Feb 2024 10:22:09 +0800 Subject: [PATCH] add some --- base/nfs/dir.go | 1 + base/web/dream.go | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/nfs/dir.go b/base/nfs/dir.go index 7e79e368..fd4ae29e 100644 --- a/base/nfs/dir.go +++ b/base/nfs/dir.go @@ -278,6 +278,7 @@ func Show(m *ice.Message, file string) bool { if IsSourceFile(m, kit.Ext(file)) { m.Cmdy(CAT, file) } else { + m.ProcessOpen(p) return false } } diff --git a/base/web/dream.go b/base/web/dream.go index 19709d8d..2d747060 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -386,12 +386,11 @@ func init() { nfs.Trash(m, path.Join(ice.USR_LOCAL_WORK, m.Option(mdb.NAME))) }}, OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) { - m.Debug("what %v", m.Option(ice.MSG_USERHOST)) - m.Debug("what %v", m.Option(ice.MSG_USERWEB)) if m.Option(mdb.TYPE) == MASTER && m.IsLocalhost() { m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME))) } else { - ProcessIframe(m, m.Option(mdb.NAME), kit.Select(S(m.Option(mdb.NAME)), SpideOrigin(m, m.Option(mdb.NAME)), m.Option(mdb.TYPE) == MASTER), arg...) + m.ProcessOpen(S(m.Option(mdb.NAME))) + // ProcessIframe(m, m.Option(mdb.NAME), kit.Select(S(m.Option(mdb.NAME)), SpideOrigin(m, m.Option(mdb.NAME)), m.Option(mdb.TYPE) == MASTER), arg...) } }}, GRANT: {Hand: func(m *ice.Message, arg ...string) {