From ae57fc0271d8579af657c3a5d55b1f8b2e008035 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 23 Feb 2024 23:46:59 +0800 Subject: [PATCH] add some --- base/web/dream.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/web/dream.go b/base/web/dream.go index 73d0bc71..0bcdf0f3 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -344,13 +344,14 @@ func init() { PushNoticeGrow(m.Options(ice.MSG_COUNT, "0", ice.LOG_DISABLE, ice.TRUE, "space.noecho", ice.TRUE), strings.ReplaceAll(string(buf), lex.NL, "\r\n")) return len(buf), nil }, nil)) + msg := m.Spawn(ice.Maps{ice.MSG_DEBUG: ice.FALSE}) DreamEach(m, m.Option(mdb.NAME), "", func(name string) { p := path.Join(ice.USR_LOCAL_WORK, name) if cb, ok := m.OptionCB("").(func(string) bool); ok && cb(p) { return } - defer PushNoticeGrow(m, "\r\n\r\n\r\n") - PushNoticeGrow(m, kit.Format("[%s]%s$ %s\r\n", time.Now().Format(ice.MOD_TIME_ONLY), name, m.Option(ice.CMD))) + defer PushNoticeGrow(msg, "\r\n\r\n\r\n") + PushNoticeGrow(msg, kit.Format("[%s]%s$ %s\r\n", time.Now().Format(ice.MOD_TIME_ONLY), name, m.Option(ice.CMD))) m.Cmd(cli.SYSTEM, kit.Split(m.Option(ice.CMD)), kit.Dict(cli.CMD_DIR, p)).Sleep300ms() }) }},