monitor chckin
This commit is contained in:
parent
b2cb2cf3d7
commit
7d17120f12
|
@ -92,8 +92,9 @@ func (c *Checkin) MonitorCheckinDay(day string) {
|
||||||
message := make([]string, 0)
|
message := make([]string, 0)
|
||||||
message = append(message, fmt.Sprintf("【考勤异常】%s", checkin.Username))
|
message = append(message, fmt.Sprintf("【考勤异常】%s", checkin.Username))
|
||||||
message = append(message, fmt.Sprintf("考勤日期:%s", checkin.Day))
|
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.TimeToDateTime(checkin.StartTime)))
|
||||||
message = append(message, fmt.Sprintf("下班时间:%s", goutil.TimeToDate(checkin.EndTime)))
|
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"))
|
global.SendMessage([]string{"jiangyong"}, strings.Join(message, "\n"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue