mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
fix web.get.parse fail
This commit is contained in:
parent
4c3223f63f
commit
f39b7a723b
@ -711,8 +711,9 @@ var Index = &ctx.Context{Name: "nfs", Help: "存储中心",
|
||||
if args = append(args, "log", "--shortstat", "--pretty=commit: %ad", "--date=iso"); len(arg) > 1 {
|
||||
args = append(args, arg[1:]...)
|
||||
} else {
|
||||
args = append(args, "--reverse")
|
||||
// args = append(args, "--reverse")
|
||||
}
|
||||
args = append(args, "--reverse")
|
||||
|
||||
if out, e := exec.Command("git", args...).CombinedOutput(); e == nil {
|
||||
for _, v := range strings.Split(string(out), "commit: ") {
|
||||
|
@ -29,7 +29,7 @@ func (tcp *TCP) parse(m *ctx.Message, arg ...string) ([]string, []string, bool)
|
||||
|
||||
address := []string{}
|
||||
if arg[1] == "dev" {
|
||||
m.Cmd("web.get", arg[1], arg[2], "temp", "ports", "format", "object").Table(func(line map[string]string) {
|
||||
m.Cmd("web.get", arg[1], arg[2], "temp", "ports", "format", "object", "temp_expire", "10").Table(func(line map[string]string) {
|
||||
address = append(address, line["value"])
|
||||
})
|
||||
if len(address) == 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user