作者 tangxvhui

非正式环境关闭短信发送

... ... @@ -5,6 +5,7 @@ import (
"strconv"
"time"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/serviceGateway"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log"
... ... @@ -278,9 +279,9 @@ func TaskSendSummaryEvaluation() error {
// 发送短信通知
func sendSmsEvalation(param []domain.SummaryEvaluation) error {
// if constant.Env != "prd" {
// return nil
// }
if constant.Env != "prd" {
return nil
}
//处理短信发送
//过滤去重 处理需要发送改执行人的消息 执行人id=>domain.LogSms
noticeMap := map[string]*domain.LogSms{}
... ... @@ -290,6 +291,9 @@ func sendSmsEvalation(param []domain.SummaryEvaluation) error {
if _, ok := noticeMap[phone]; ok {
continue
}
if phone == "" {
continue
}
smsMessage := domain.LogSms{}
smsMessage.SummaryEvaluationMessage(phone, name)
noticeMap[phone] = &smsMessage
... ...