正在显示
1 个修改的文件
包含
7 行增加
和
3 行删除
@@ -5,6 +5,7 @@ import ( | @@ -5,6 +5,7 @@ import ( | ||
5 | "strconv" | 5 | "strconv" |
6 | "time" | 6 | "time" |
7 | 7 | ||
8 | + "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant" | ||
8 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/serviceGateway" | 9 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/serviceGateway" |
9 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log" | 10 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log" |
10 | 11 | ||
@@ -278,9 +279,9 @@ func TaskSendSummaryEvaluation() error { | @@ -278,9 +279,9 @@ func TaskSendSummaryEvaluation() error { | ||
278 | 279 | ||
279 | // 发送短信通知 | 280 | // 发送短信通知 |
280 | func sendSmsEvalation(param []domain.SummaryEvaluation) error { | 281 | func sendSmsEvalation(param []domain.SummaryEvaluation) error { |
281 | - // if constant.Env != "prd" { | ||
282 | - // return nil | ||
283 | - // } | 282 | + if constant.Env != "prd" { |
283 | + return nil | ||
284 | + } | ||
284 | //处理短信发送 | 285 | //处理短信发送 |
285 | //过滤去重 处理需要发送改执行人的消息 执行人id=>domain.LogSms | 286 | //过滤去重 处理需要发送改执行人的消息 执行人id=>domain.LogSms |
286 | noticeMap := map[string]*domain.LogSms{} | 287 | noticeMap := map[string]*domain.LogSms{} |
@@ -290,6 +291,9 @@ func sendSmsEvalation(param []domain.SummaryEvaluation) error { | @@ -290,6 +291,9 @@ func sendSmsEvalation(param []domain.SummaryEvaluation) error { | ||
290 | if _, ok := noticeMap[phone]; ok { | 291 | if _, ok := noticeMap[phone]; ok { |
291 | continue | 292 | continue |
292 | } | 293 | } |
294 | + if phone == "" { | ||
295 | + continue | ||
296 | + } | ||
293 | smsMessage := domain.LogSms{} | 297 | smsMessage := domain.LogSms{} |
294 | smsMessage.SummaryEvaluationMessage(phone, name) | 298 | smsMessage.SummaryEvaluationMessage(phone, name) |
295 | noticeMap[phone] = &smsMessage | 299 | noticeMap[phone] = &smsMessage |
-
请 注册 或 登录 后发表评论