diff --git a/base/cli/system.go b/base/cli/system.go index f3f45eb2..660cfafa 100644 --- a/base/cli/system.go +++ b/base/cli/system.go @@ -149,7 +149,7 @@ func init() { mdb.ListSelect(m, arg...) return } - m.Grow(SYSTEM, "", kit.Dict(mdb.TIME, m.Time(), ice.CMD, kit.Join(arg, ice.SP))) + // m.Grow(SYSTEM, "", kit.Dict(mdb.TIME, m.Time(), ice.CMD, kit.Join(arg, ice.SP))) if len(arg) == 1 { arg = kit.Split(arg[0]) diff --git a/base/ssh/scripts.go b/base/ssh/scripts.go index 69d186c0..1af8d5c4 100644 --- a/base/ssh/scripts.go +++ b/base/ssh/scripts.go @@ -137,11 +137,13 @@ func (f *Frame) scan(m *ice.Message, h, line string) *Frame { m.I, m.O = f.stdin, f.stdout bio := bufio.NewScanner(f.stdin) for f.prompt(m, ps...); bio.Scan() && f.stdin != nil; f.prompt(m, ps...) { - if h == STDIO && len(bio.Text()) == 0 { - continue // 空行 + if h == STDIO { + if len(bio.Text()) == 0 { + continue // 空行 + } + m.Cmdx(mdb.INSERT, SOURCE, kit.Keys(mdb.HASH, h), mdb.LIST, mdb.TEXT, bio.Text()) } - m.Cmdx(mdb.INSERT, SOURCE, kit.Keys(mdb.HASH, h), mdb.LIST, mdb.TEXT, bio.Text()) f.count++ if len(bio.Text()) == 0 { diff --git a/base/web/spide.go b/base/web/spide.go index 7577fe08..0d2a07b4 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -340,8 +340,8 @@ func init() { ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { conf := m.Confm(cli.RUNTIME, "conf") m.Cmd(SPIDE, mdb.CREATE, ice.OPS, kit.Select("http://:9020", conf["ctx_ops"])) - m.Cmd(SPIDE, mdb.CREATE, ice.DEV, kit.Select("http://:9020", conf["ctx_dev"])) - m.Cmd(SPIDE, mdb.CREATE, ice.SHY, kit.Select("https://shylinux.com:443", conf["ctx_shy"])) + m.Cmd(SPIDE, mdb.CREATE, ice.DEV, kit.Select("http://contexts.woa.com:80", conf["ctx_dev"])) + m.Cmd(SPIDE, mdb.CREATE, ice.SHY, kit.Select("https://contexts.com.cn:443", conf["ctx_shy"])) }}, mdb.CREATE: {Name: "create name address", Help: "添加", Hand: func(m *ice.Message, arg ...string) { _spide_create(m, m.Option(mdb.NAME), m.Option(ADDRESS))