1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2022-12-03 13:42:26 +08:00
parent 8772a64efa
commit 261ef042b9
7 changed files with 16 additions and 14 deletions

View File

@ -22,7 +22,7 @@ func _totp_gen(per int64) string {
return strings.ToUpper(base32.StdEncoding.EncodeToString(b[:]))
}
func _totp_get(key string, per int64, num int) string {
buf, now := []byte{}, kit.Int64(time.Now().Unix() / per)
buf, now := []byte{}, kit.Int64(time.Now().Unix()/per)
for i := 0; i < 8; i++ {
buf = append(buf, byte((uint64(now) >> uint64(((7 - i) * 8)))))
}

View File

@ -10,7 +10,9 @@ import (
"shylinux.com/x/toolkits/miss"
)
func _list_fields(m *ice.Message) []string { return kit.Split(kit.Select(LIST_FIELD, m.OptionFields())) }
func _list_fields(m *ice.Message) []string {
return kit.Split(kit.Select(LIST_FIELD, m.OptionFields()))
}
func _list_inputs(m *ice.Message, prefix, chain string, field, value string) {
list := map[string]int{}
defer func() {