diff --git a/core/team/epic.go b/core/team/epic.go index e1934d5e..080e2790 100644 --- a/core/team/epic.go +++ b/core/team/epic.go @@ -15,7 +15,7 @@ const EPIC = "epic" func init() { Index.MergeCommands(ice.Commands{ EPIC: {Name: "epic hash list create export import", Help: "史记", Actions: ice.MergeActions(ice.Actions{ - mdb.CREATE: {Name: "create time@date zone name"}, mdb.MODIFY: {Name: "modify hash time@date zone name"}, + mdb.CREATE: {Name: "create time@date zone name"}, mdb.MODIFY: {Name: "modify time@date zone name"}, }, mdb.HashAction(mdb.FIELD, "time,hash,zone,name")), Hand: func(m *ice.Message, arg ...string) { mdb.HashSelect(m, arg...).Tables(func(value ice.Maps) { if span := kit.Time(m.Time()) - kit.Time(value[mdb.TIME]); span > 0 { diff --git a/core/team/plan.go b/core/team/plan.go index fa3a8c0d..b995648e 100644 --- a/core/team/plan.go +++ b/core/team/plan.go @@ -64,9 +64,7 @@ func init() { Index.MergeCommands(ice.Commands{ PLAN: {Name: "plan scale=week,day,week,month,year,long begin_time@date list", Help: "计划", Actions: ice.MergeActions(ice.Actions{ mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { m.Cmdy(TODO, mdb.INPUTS, arg) }}, - mdb.PLUGIN: {Name: "plugin extra.index extra.args", Hand: func(m *ice.Message, arg ...string) { - m.Cmdy(TASK, mdb.MODIFY, arg) - }}, + mdb.PLUGIN: {Name: "plugin extra.index extra.args", Help: "插件", Hand: func(m *ice.Message, arg ...string) { m.Cmdy(TASK, mdb.MODIFY, arg) }}, ice.RUN: {Hand: func(m *ice.Message, arg ...string) { m.Option(ice.POD, m.Option("task.pod")) if m.Option("task.pod", ""); ctx.PodCmd(m, m.PrefixKey(), ice.RUN, arg) { diff --git a/core/team/task.go b/core/team/task.go index 573c1985..72225b3e 100644 --- a/core/team/task.go +++ b/core/team/task.go @@ -60,6 +60,8 @@ func init() { TASK: {Name: "task zone id auto insert export import", Help: "任务", Actions: ice.MergeActions(ice.Actions{ mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { switch arg[0] { + case mdb.STATUS: + m.Push(arg[0], PREPARE, PROCESS, CANCEL, FINISH) case LEVEL, SCORE: m.Push(arg[0], "1", "2", "3", "4", "5") case mdb.TYPE: