diff --git a/worker/autopay.go b/worker/autopay.go index 343c8da..e670f27 100644 --- a/worker/autopay.go +++ b/worker/autopay.go @@ -25,7 +25,7 @@ func ViewCheckin(checkin *model.Checkin) { message = append(message, "考勤日期:%s", checkin.Day) message = append(message, "开始时间:%s", goutil.TimeToDateTime(checkin.StartTime)) message = append(message, "结束时间:%s", goutil.TimeToDateTime(checkin.EndTime)) - message = append(message, "工作时长:%s", time.Duration(time.Duration(duration)*time.Second).String()) + message = append(message, "工作时长:%s", (time.Duration(duration) * time.Second).String()) if err := global.SendMessage([]string{"jiangyong"}, strings.Join(message, "\n")); err != nil { log.Errorf("send message error :%s", err.Error())