notify
This commit is contained in:
parent
45b5c1d499
commit
1e1c502819
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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("")
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue