mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
415b88bc39
commit
2cb2261b2d
@ -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 {
|
||||
|
8
go.mod
8
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
|
||||
)
|
||||
|
2
type.go
2
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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user