diff --git a/base/web/spide.go b/base/web/spide.go index d74a99ab..e6c1b21b 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -407,7 +407,8 @@ func init() { if p := path.Join(ice.SRC_TEMPLATE, m.PrefixKey(), path.Join(arg...)); nfs.Exists(m, p) { return p + kit.Select("", nfs.PS, len(arg) == 0) } else { - return kit.MergeURL2(UserHost(m)+ctx.GetCmdFile(m, m.PrefixKey()), path.Join(arg...)) + return kit.MergeURL2(SpideOrigin(m, ice.OPS)+m.FileURI(ctx.GetCmdFile(m, m.PrefixKey())), path.Join(arg...)) + return kit.MergeURL2(UserHost(m)+m.FileURI(ctx.GetCmdFile(m, m.PrefixKey())), path.Join(arg...)) } } nfs.DocumentPath = func(m *ice.Message, arg ...string) string { diff --git a/core/code/bench.go b/core/code/bench.go index 329d4bdf..51b450ca 100644 --- a/core/code/bench.go +++ b/core/code/bench.go @@ -100,8 +100,8 @@ func init() { }}, }, mdb.ExportZoneAction(mdb.FIELDS, "time,id,type,name,text,nconn,nreqs")), Hand: func(m *ice.Message, arg ...string) { mdb.ZoneSelect(m, arg...) - kit.If(len(arg) == 1, func() { m.Action(cli.START) }) m.PushAction(kit.Select(cli.START, mdb.REMOVE, len(arg) == 0)) + kit.If(len(arg) == 1, func() { m.Action(mdb.INSERT, cli.START) }) }}, }) }