1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-02-12 13:16:04 +08:00
parent 30a7ce39b4
commit d98a322d05
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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) })
}},
})
}