From 1e1c502819dcce0647c8e0ca7563aef2f39c1d34 Mon Sep 17 00:00:00 2001 From: jiangyong Date: Mon, 6 May 2024 10:35:03 +0800 Subject: [PATCH] notify --- worker/staff.go | 2 +- worker/worker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/staff.go b/worker/staff.go index 7ccf916..d4170c1 100644 --- a/worker/staff.go +++ b/worker/staff.go @@ -48,7 +48,7 @@ func (s *Staff) SendStaffSalaryBill(month string) { log.Errorf("send message error :%s", err.Error()) } if userConfig != nil && cast.ToBool(userConfig.Get(model.StaffSalaryNotify)) == true { - if err := global.SendMessage([]string{"liangbin"}, strings.Join(message, "\n")); err != nil { + if err := global.SendMessage([]string{userConfig.Username}, strings.Join(message, "\n")); err != nil { log.Errorf("send message error :%s", err.Error()) } } diff --git a/worker/worker.go b/worker/worker.go index 75ebdfb..3956fa6 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -36,7 +36,7 @@ func Init() error { }) // 1号计算工资信息 - cron.Every(1).Month(1).At("06:00").Do(func() { + cron.Every(1).Month(1, 2, 3, 4, 5, 6, 7, 8, 9).At("06:00").Do(func() { go staff.SyncStaffSalary("") })