mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
fix command
This commit is contained in:
parent
c653bf1f38
commit
969f314658
@ -4,5 +4,5 @@ var version = struct {
|
||||
host string
|
||||
self int
|
||||
}{
|
||||
"2019-07-10 04:23:04", "ZYB-20190522USI.ubuntu", 135,
|
||||
"2019-07-10 05:27:50", "ZYB-20190522USI.ubuntu", 136,
|
||||
}
|
||||
|
@ -667,6 +667,9 @@ var Index = &Context{Name: "ctx", Help: "模块中心", Server: &CTX{},
|
||||
|
||||
switch action {
|
||||
case "cmd":
|
||||
if arg[0] == "command" {
|
||||
arg = arg[1:]
|
||||
}
|
||||
if msg.Cmd(arg); !msg.Hand {
|
||||
msg = msg.Cmd("cli.cmd", arg)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user