作者 tangxvhui

调整开关

@@ -4,6 +4,7 @@ import ( @@ -4,6 +4,7 @@ import (
4 "time" 4 "time"
5 5
6 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory" 6 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
  7 + "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant"
7 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" 8 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
8 ) 9 )
9 10
@@ -43,9 +44,9 @@ func (notices notifyConfirmEvaluationScore) makeNotify(param *domain.SummaryEval @@ -43,9 +44,9 @@ func (notices notifyConfirmEvaluationScore) makeNotify(param *domain.SummaryEval
43 // 适配规则:上级提交评估后 到10号晚23:59前,可以发送 44 // 适配规则:上级提交评估后 到10号晚23:59前,可以发送
44 // 适配规则 对未确认的被评估人每隔6个小时进行提醒(23:00-7:00期间不提醒),直到确认 45 // 适配规则 对未确认的被评估人每隔6个小时进行提醒(23:00-7:00期间不提醒),直到确认
45 func (notices notifyConfirmEvaluationScore) ifSend(index int) (bool, error) { 46 func (notices notifyConfirmEvaluationScore) ifSend(index int) (bool, error) {
46 - // if constant.Env != "prd" {  
47 - // return false, nil  
48 - // } 47 + if constant.Env != "prd" {
  48 + return false, nil
  49 + }
49 //检查时间 50 //检查时间
50 nowTime := time.Now() 51 nowTime := time.Now()
51 if nowTime.Day() > 10 { 52 if nowTime.Day() > 10 {