diff --git a/worker/autopay.go b/worker/autopay.go index 6f0d41a..e90c4a7 100644 --- a/worker/autopay.go +++ b/worker/autopay.go @@ -21,6 +21,7 @@ var ( ) func NotifyCheckinOnDuty(checkin *model.Checkin) { + message := make([]string, 0) message = append(message, "【上班提醒】") message = append(message, fmt.Sprintf("员工名称:%s", checkin.Username)) @@ -40,7 +41,7 @@ func NotifyCheckinOnDuty(checkin *model.Checkin) { return } - if isOndutyPay(checkin, userConfig) { + if isOndutyPay(checkin, userConfig) && checkin.Exception != "" { payMoney := cast.ToInt64(userConfig.Get(model.CheckinOndutyMoney)) if payMoney == 0 { payMoney = 2000