1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

fix import err

This commit is contained in:
shylinux 2019-07-02 23:40:14 +08:00
parent 33f1a41fc3
commit 1d42a86a2a
3 changed files with 4 additions and 6 deletions

View File

@ -9,7 +9,7 @@ install:
@go get github.com/gomarkdown/markdown @go get github.com/gomarkdown/markdown
@go get github.com/PuerkitoBio/goquery @go get github.com/PuerkitoBio/goquery
@go get github.com/go-cas/cas @go get github.com/go-cas/cas
@go get github.com/gopkg.in/gomail.v2 @go get gopkg.in/gomail.v2
GOPATH=$(PWD):$(GOPATH) go install $(BENCH) GOPATH=$(PWD):$(GOPATH) go install $(BENCH)
@date @date
# bench web.code.counter nmake 1 # bench web.code.counter nmake 1

View File

@ -146,7 +146,7 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
"github.com/gomodule/redigo", "github.com/gomodule/redigo",
"github.com/go-sql-driver/mysql", "github.com/go-sql-driver/mysql",
"github.com/gomarkdown/markdown", "github.com/gomarkdown/markdown",
"github.com/gopkg.in/gomail.v2", "gopkg.in/gomail.v2",
"github.com/skip2/go-qrcode", "github.com/skip2/go-qrcode",
"github.com/PuerkitoBio/goquery", "github.com/PuerkitoBio/goquery",
"github.com/go-cas/cas", "github.com/go-cas/cas",
@ -449,10 +449,8 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
m.Gos(m, func(m *ctx.Message) { m.Gos(m, func(m *ctx.Message) {
if e := cmd.Start(); e != nil { if e := cmd.Start(); e != nil {
m.Echo("error: ").Echo("%s\n", e) m.Echo("error: ").Echo("%s\n", e)
m.Log("fuck", "%v", e)
} else if e := cmd.Wait(); e != nil { } else if e := cmd.Wait(); e != nil {
m.Echo("error: ").Echo("%s\n", e) m.Echo("error: ").Echo("%s\n", e)
m.Log("fuck", "%v", e)
} }
m.Conf("daemon", []string{h, "finish_time"}, time.Now().Format(m.Conf("time_format"))) m.Conf("daemon", []string{h, "finish_time"}, time.Now().Format(m.Conf("time_format")))
}) })
@ -797,7 +795,7 @@ var version = struct {
"cmd_env", "ctx_box", fmt.Sprintf("http://127.0.0.1%s", m.Conf("runtime", "boot.web_port")), "cmd_env", "ctx_box", fmt.Sprintf("http://127.0.0.1%s", m.Conf("runtime", "boot.web_port")),
"cmd_daemon", "true", "cmd_daemon", "true",
) )
return return
m.Cmdy("cli.system", m.Conf("runtime", "boot.ctx_bin"), "daemon", m.Cmdy("cli.system", m.Conf("runtime", "boot.ctx_bin"), "daemon",
"cmd_dir", p, "cmd_dir", p,
"cmd_env", "ctx_home", m.Conf("runtime", "boot.ctx_home"), "cmd_env", "ctx_home", m.Conf("runtime", "boot.ctx_home"),

View File

@ -4,5 +4,5 @@ var version = struct {
host string host string
self int self int
}{ }{
"2019-07-02 22:32:30", "ZYB-20190522USI", 91, "2019-07-02 23:37:53", "com", 92,
} }