diff --git a/core/chat/header.go b/core/chat/header.go index 9fc03960..3300c685 100644 --- a/core/chat/header.go +++ b/core/chat/header.go @@ -51,6 +51,10 @@ func init() { aaa.USERROLE: {Name: "userrole", Help: "用户角色", Hand: func(m *ice.Message, arg ...string) { m.Echo(aaa.UserRole(m, m.Option("who"))) }}, + aaa.USERNICK: {Name: "usernick", Help: "用户昵称", Hand: func(m *ice.Message, arg ...string) { + m.Option(aaa.USERNAME, m.Option(ice.MSG_USERNAME)) + m.Cmdy("aaa.user", kit.MDB_ACTION, mdb.MODIFY, aaa.USERNICK, arg[0]) + }}, BACKGROUND: {Name: "background", Help: "背景图片", Hand: func(m *ice.Message, arg ...string) { m.Option(BACKGROUND, m.Conf(HEADER, BACKGROUND, arg[0])) }}, diff --git a/core/team/count.go b/core/team/count.go index 5ef90c4e..cb098617 100644 --- a/core/team/count.go +++ b/core/team/count.go @@ -25,9 +25,11 @@ func init() { if _task_list(m, kit.Select("", arg, 0), kit.Select("", arg, 1)); len(arg) == 0 { return + } else if len(arg) == 1 { + m.SortTime(TaskField.BEGIN_TIME) } - m.SortTime(TaskField.BEGIN_TIME) + tz := int64(8) m.Table(func(index int, value map[string]string, head []string) { if value[kit.MDB_STATUS] == TaskStatus.CANCEL { return @@ -38,7 +40,7 @@ func init() { show = append(show, kit.Format(`