From 0fa3965d6e4e09339af0b58bc101933947cd54fe Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 9 Mar 2024 09:43:33 +0800 Subject: [PATCH] add some --- base/web/dream.go | 2 +- core/wiki/feel.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/web/dream.go b/base/web/dream.go index 95681d48..3163d0f4 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -534,7 +534,7 @@ func DreamProcessIframe(m *ice.Message, arg ...string) { defer m.Push(TITLE, kit.Keys(m.Option(mdb.NAME), m.ShortKey())) } DreamProcess(m, CHAT_IFRAME, func() string { - return S(kit.Keys(m.Option(ice.MSG_USERPOD), m.Option(mdb.NAME))) + C(m.ShortKey()) + return kit.MergeURL(S(kit.Keys(m.Option(ice.MSG_USERPOD), m.Option(mdb.NAME)))+C(m.ShortKey()), ice.MSG_DEBUG, m.Option(ice.MSG_DEBUG)) }, arg...) } func DreamProcess(m *ice.Message, cmd string, args ice.Any, arg ...string) { diff --git a/core/wiki/feel.go b/core/wiki/feel.go index f818917d..b5b805c3 100644 --- a/core/wiki/feel.go +++ b/core/wiki/feel.go @@ -25,7 +25,7 @@ const FEEL = "feel" func init() { Index.MergeCommands(ice.Commands{ - FEEL: {Name: "feel path file auto upload record1 record2 actions", Icon: "Photos.png", Help: "影音媒体", Actions: ice.MergeActions(ice.Actions{ + FEEL: {Name: "feel path=usr/icons/ file=background.jpg auto upload record1 record2 actions", Icon: "Photos.png", Help: "影音媒体", Actions: ice.MergeActions(ice.Actions{ web.UPLOAD: {Hand: func(m *ice.Message, arg ...string) { up := kit.Simple(m.Optionv(ice.MSG_UPLOAD)) m.Cmdy(web.CACHE, web.WATCH, m.Option(mdb.HASH), path.Join(m.Option(nfs.PATH, _feel_path(m, m.Option(nfs.PATH))), up[1]))