monitor chckin

This commit is contained in:
jiangyong27 2024-04-12 11:35:47 +08:00
parent b2cb2cf3d7
commit 7d17120f12
1 changed files with 3 additions and 2 deletions

View File

@ -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"))
}
}