This commit is contained in:
jiangyong 2024-05-06 10:35:03 +08:00
parent 45b5c1d499
commit 1e1c502819
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ func (s *Staff) SendStaffSalaryBill(month string) {
log.Errorf("send message error :%s", err.Error()) log.Errorf("send message error :%s", err.Error())
} }
if userConfig != nil && cast.ToBool(userConfig.Get(model.StaffSalaryNotify)) == true { 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()) log.Errorf("send message error :%s", err.Error())
} }
} }

View File

@ -36,7 +36,7 @@ func Init() error {
}) })
// 1号计算工资信息 // 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("") go staff.SyncStaffSalary("")
}) })