...
|
...
|
@@ -53,10 +53,12 @@ func (notices *notifySms) runTask() { |
|
|
log.Logger.Error(e)
|
|
|
}
|
|
|
case <-timer.C:
|
|
|
nowTime := time.Now()
|
|
|
err := notices.checkSendSms()
|
|
|
if err != nil {
|
|
|
log.Logger.Error("检查发送短信通知任务:" + err.Error())
|
|
|
}
|
|
|
log.Logger.Info(fmt.Sprintf("检查发送短信通知任务消耗时间:%.2f s", time.Since(nowTime).Seconds()))
|
|
|
timer.Reset(notices.interval) // 重置定时
|
|
|
}
|
|
|
}
|
...
|
...
|
|