optimize: 在查找到Server对象后移除ServerID标识符

This commit is contained in:
Akkia
2022-04-17 18:08:30 +08:00
parent f6a5362a97
commit b5b521e8cf
2 changed files with 10 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ func CronTrigger(cr model.Cron) func() {
Type: model.TaskTypeCommand,
})
} else {
SendNotification(cr.NotificationTag, fmt.Sprintf("[任务失败] %s服务器 %s 离线,无法执行。", cr.Name, s.Name), false)
SendNotification(cr.NotificationTag, fmt.Sprintf("$%d$[任务失败] %s服务器 %s 离线,无法执行。", s.ID, cr.Name, s.Name), false)
}
}
}