NotifyType enum

This commit is contained in:
linxiaozhi
2019-02-16 22:42:25 +08:00
parent c3fbd7a321
commit b98c77d7b7
3 changed files with 9 additions and 4 deletions

View File

@@ -306,7 +306,7 @@ func (j *Job) Run() {
var content = ""
notifyTpl, err := models.NotifyTplGetById(j.task.NotifyTplId)
if err != nil {
notifyTpl, err := models.NotifyTplGetByTplType(j.task.NotifyType, "system")
notifyTpl, err := models.NotifyTplGetByTplType(j.task.NotifyType, models.NotifyTplTypeSystem)
if err == nil {
title = notifyTpl.Title
content = notifyTpl.Content