diff --git a/base/aaa/user.go b/base/aaa/user.go index f85fe079..3f743c80 100644 --- a/base/aaa/user.go +++ b/base/aaa/user.go @@ -12,7 +12,7 @@ import ( func _user_list(m *ice.Message) { 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) { diff --git a/meta.go b/meta.go index 12800ea1..ddb836c4 100644 --- a/meta.go +++ b/meta.go @@ -197,9 +197,9 @@ func (m *Message) Sort(key string, arg ...string) *Message { case "int_r": number[index] = -kit.Int(line[key]) case "time": - number[index] = kit.Time(line[key]) + number[index] = int(kit.Time(line[key])) case "time_r": - number[index] = -kit.Time(line[key]) + number[index] = -int(kit.Time(line[key])) } })