diff --git a/base/aaa/totp.go b/base/aaa/totp.go index 2b54a0dc..62f6bdc8 100644 --- a/base/aaa/totp.go +++ b/base/aaa/totp.go @@ -26,7 +26,7 @@ func _totp_get(key string, num int, per int64) string { buf := []byte{} for i := 0; i < 8; i++ { - buf = append(buf, byte((now >> ((7 - i) * 8)))) + buf = append(buf, byte((uint64(now) >> uint64(((7 - i) * 8))))) } if l := len(key) % 8; l != 0 { diff --git a/go.mod b/go.mod index 5fe2e18e..084942c6 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,15 @@ module github.com/shylinux/icebergs -go 1.13 +go 1.11 require ( + github.com/AaronO/go-git-http v0.0.0-20161214145340-1d9485b3a98f github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f github.com/gorilla/websocket v1.4.2 - github.com/kr/pty v1.1.1 + github.com/kr/pty v1.1.8 github.com/mattn/go-colorable v0.1.8 github.com/nareix/joy4 v0.0.0-20200507095837-05a4ffbb5369 github.com/shylinux/toolkits v0.2.1 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e - github.com/tuotoo/qrcode v0.0.0-20190222102259-ac9c44189bf2 - golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 + golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 ) diff --git a/type.go b/type.go index f456f8d8..acebfd2e 100644 --- a/type.go +++ b/type.go @@ -82,7 +82,7 @@ func (c *Context) Cap(key string, arg ...interface{}) string { } func (c *Context) _hand(m *Message, cmd *Command, key string, k string, h *Action, arg ...string) *Message { m.Log(LOG_CMDS, "%s.%s %s %d %v %s", c.Name, key, k, len(arg), arg, kit.FileLine(h.Hand, 3)) - if len(h.List) > 0 { + if len(h.List) > 0 && k != "search" { order := false for i, v := range h.List { name := kit.Format(kit.Value(v, "name"))