正在显示
1 个修改的文件
包含
5 行增加
和
6 行删除
@@ -13,6 +13,7 @@ func RunTaskSmsNotify() { | @@ -13,6 +13,7 @@ func RunTaskSmsNotify() { | ||
13 | taskSmsNotify = ¬ifySms{} | 13 | taskSmsNotify = ¬ifySms{} |
14 | taskSmsNotify.init() | 14 | taskSmsNotify.init() |
15 | taskSmsNotify.regist(notifyStaffAssess{}) | 15 | taskSmsNotify.regist(notifyStaffAssess{}) |
16 | + taskSmsNotify.regist(notifyStaffAssess2{}) | ||
16 | taskSmsNotify.regist(notifySummaryEvaluation{}) | 17 | taskSmsNotify.regist(notifySummaryEvaluation{}) |
17 | taskSmsNotify.regist(notifyConfirmEvaluationScore{}) | 18 | taskSmsNotify.regist(notifyConfirmEvaluationScore{}) |
18 | taskSmsNotify.runTask() | 19 | taskSmsNotify.runTask() |
@@ -23,17 +24,15 @@ func AddNotifyStaffAssess(param *domain.StaffAssess) { | @@ -23,17 +24,15 @@ func AddNotifyStaffAssess(param *domain.StaffAssess) { | ||
23 | 24 | ||
24 | newNotify := notifyStaffAssess{} | 25 | newNotify := notifyStaffAssess{} |
25 | newSms := newNotify.makeNotify(param) | 26 | newSms := newNotify.makeNotify(param) |
26 | - if newSms == nil { | ||
27 | - return | ||
28 | - } | 27 | + if newSms != nil { |
29 | taskSmsNotify.addTask(newSms) | 28 | taskSmsNotify.addTask(newSms) |
29 | + } | ||
30 | 30 | ||
31 | newNotify2 := notifyStaffAssess2{} | 31 | newNotify2 := notifyStaffAssess2{} |
32 | newSms2 := newNotify2.makeNotify(param) | 32 | newSms2 := newNotify2.makeNotify(param) |
33 | - if newSms2 == nil { | ||
34 | - return | ||
35 | - } | 33 | + if newSms2 != nil { |
36 | taskSmsNotify.addTask(newSms2) | 34 | taskSmsNotify.addTask(newSms2) |
35 | + } | ||
37 | } | 36 | } |
38 | 37 | ||
39 | // 周期自评短信通知 ,预创建待发送的短信消息 | 38 | // 周期自评短信通知 ,预创建待发送的短信消息 |
-
请 注册 或 登录 后发表评论