...
|
...
|
@@ -49,9 +49,9 @@ func (notices *notifySms) addTask(task *domain.LogSms) error { |
|
|
|
|
|
// RunTask 执行短信通知任务
|
|
|
func (notices *notifySms) runTask() {
|
|
|
// if constant.Env != "prd" {
|
|
|
// return
|
|
|
// }
|
|
|
if constant.Env != "prd" {
|
|
|
return
|
|
|
}
|
|
|
timer := time.NewTimer(notices.interval)
|
|
|
for {
|
|
|
select {
|
...
|
...
|
|