新增出错短信提醒

This commit is contained in:
george
2018-08-09 18:47:42 +08:00
parent 72ceb95845
commit 3febcce23d
8 changed files with 151 additions and 28 deletions

View File

@@ -166,8 +166,7 @@ func (self *TaskController) Detail() {
}
//是否出错通知
self.Data["adminInfo"] = []int{0}
fmt.Println(task.NotifyUserIds)
self.Data["adminInfo"] = []*AdminInfo{}
if task.NotifyUserIds != "0" && task.NotifyUserIds != "" {
self.Data["adminInfo"] = AllAdminInfo(task.NotifyUserIds)
}