mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt some
This commit is contained in:
parent
c45ae98b42
commit
d73015258e
@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
func _user_list(m *ice.Message) {
|
func _user_list(m *ice.Message) {
|
||||||
m.Richs(USER, nil, kit.MDB_FOREACH, func(key string, value map[string]interface{}) {
|
m.Richs(USER, nil, kit.MDB_FOREACH, func(key string, value map[string]interface{}) {
|
||||||
m.Push(key, value, []string{kit.MDB_TIME, USERNAME, USERNODE})
|
m.Push(key, value, []string{kit.MDB_TIME, USERNAME, USERNICK})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
func _user_login(m *ice.Message, name, word string) (ok bool) {
|
func _user_login(m *ice.Message, name, word string) (ok bool) {
|
||||||
|
4
meta.go
4
meta.go
@ -197,9 +197,9 @@ func (m *Message) Sort(key string, arg ...string) *Message {
|
|||||||
case "int_r":
|
case "int_r":
|
||||||
number[index] = -kit.Int(line[key])
|
number[index] = -kit.Int(line[key])
|
||||||
case "time":
|
case "time":
|
||||||
number[index] = kit.Time(line[key])
|
number[index] = int(kit.Time(line[key]))
|
||||||
case "time_r":
|
case "time_r":
|
||||||
number[index] = -kit.Time(line[key])
|
number[index] = -int(kit.Time(line[key]))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user