orderNotice定时任务
This commit is contained in:
parent
ccd3157649
commit
4f9caac1b0
|
|
@ -20,6 +20,11 @@ func (s *VoucherService) CronNotice(ctx context.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
if len(c.Command) == 0 {
|
||||
log.Error("orderNotice定时任务 command is empty")
|
||||
return nil
|
||||
}
|
||||
|
||||
return s.cron.AddFunc(c.Command, func() {
|
||||
|
||||
if err := s.Notice(ctx); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue