diff --git a/core/team/count.go b/core/team/count.go
index 1e669e86..5ef90c4e 100644
--- a/core/team/count.go
+++ b/core/team/count.go
@@ -33,12 +33,17 @@ func init() {
return
}
- t := kit.Time(value[TaskField.BEGIN_TIME])/int64(time.Second) - time.Now().Unix()
- m.Echo(`
`,
+ show := []string{}
+ for _, k := range []string{kit.MDB_NAME, kit.MDB_TEXT} {
+ show = append(show, kit.Format(`%v
`, k, value[k]))
+ }
+
+ t := kit.Time(value[TaskField.BEGIN_TIME])/int64(time.Second)/3600/24 - time.Now().Unix()/3600/24
+ m.Echo(`距离 %v%v%v %v 天
`,
kit.Select("gone", "come", t > 0), value[kit.MDB_TEXT],
strings.Split(value[TaskField.BEGIN_TIME], " ")[0],
- value[kit.MDB_NAME],
- kit.Select("已经", "还有", t > 0), t/3600/24,
+ strings.Join(show, ""),
+ kit.Select("已经", "还有", t > 0), t,
)
})
}},