added dingtalk

This commit is contained in:
marvzhang
2020-01-14 20:03:04 +08:00
parent 720492ed38
commit 8069000956
3 changed files with 102 additions and 2 deletions

View File

@@ -519,6 +519,10 @@ func ExecuteTask(id int) {
if user.Email != "" &&
user.Setting.NotificationTrigger == constants.NotificationTriggerOnTaskEnd {
SendTaskEmail(user, t, spider)
if err := notification.SendDingTalkNotification(t, spider); err != nil {
log.Errorf(err.Error())
debug.PrintStack()
}
}
// 保存任务