正在显示
1 个修改的文件
包含
4 行增加
和
3 行删除
@@ -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 | ||
@@ -70,9 +71,9 @@ func (notices notifyStaffAssess) makeNotify(param *domain.StaffAssess) *domain.L | @@ -70,9 +71,9 @@ func (notices notifyStaffAssess) makeNotify(param *domain.StaffAssess) *domain.L | ||
70 | 71 | ||
71 | // ifSend 确认是否发送通知 | 72 | // ifSend 确认是否发送通知 |
72 | func (notices notifyStaffAssess) ifSend(index int) (bool, error) { | 73 | func (notices notifyStaffAssess) ifSend(index int) (bool, error) { |
73 | - // if constant.Env != "prd" { | ||
74 | - // return false, nil | ||
75 | - // } | 74 | + if constant.Env != "prd" { |
75 | + return false, nil | ||
76 | + } | ||
76 | 77 | ||
77 | transactionContext, err := factory.CreateTransactionContext(nil) | 78 | transactionContext, err := factory.CreateTransactionContext(nil) |
78 | if err != nil { | 79 | if err != nil { |
-
请 注册 或 登录 后发表评论