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