diff --git a/worker/checkin.go b/worker/checkin.go index fe855c4..3cf8bee 100644 --- a/worker/checkin.go +++ b/worker/checkin.go @@ -92,8 +92,9 @@ func (c *Checkin) MonitorCheckinDay(day string) { message := make([]string, 0) message = append(message, fmt.Sprintf("【考勤异常】%s", checkin.Username)) message = append(message, fmt.Sprintf("考勤日期:%s", checkin.Day)) - message = append(message, fmt.Sprintf("上班时间:%s", goutil.TimeToDate(checkin.StartTime))) - message = append(message, fmt.Sprintf("下班时间:%s", goutil.TimeToDate(checkin.EndTime))) + message = append(message, fmt.Sprintf("上班时间:%s", goutil.TimeToDateTime(checkin.StartTime))) + message = append(message, fmt.Sprintf("下班时间:%s", goutil.TimeToDateTime(checkin.EndTime))) + message = append(message, fmt.Sprintf("异常原因:%s", checkin.Exception)) global.SendMessage([]string{"jiangyong"}, strings.Join(message, "\n")) } }