...
|
...
|
@@ -4,6 +4,7 @@ import ( |
|
|
"time"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -48,9 +49,9 @@ func (notices notifyStaffAssess) makeNotify(param *domain.StaffAssess) *domain.L |
|
|
|
|
|
// ifSend 确认是否发送通知
|
|
|
func (notices notifyStaffAssess) ifSend(index int) (bool, error) {
|
|
|
// if constant.Env != "prd" {
|
|
|
// return false, nil
|
|
|
// }
|
|
|
if constant.Env != "prd" {
|
|
|
return false, nil
|
|
|
}
|
|
|
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
...
|
...
|
@@ -123,9 +124,9 @@ func (notices notifyStaffAssess2) makeNotify(param *domain.StaffAssess) *domain. |
|
|
|
|
|
// ifSend 确认是否发送通知
|
|
|
func (notices notifyStaffAssess2) ifSend(index int) (bool, error) {
|
|
|
// if constant.Env != "prd" {
|
|
|
// return false, nil
|
|
|
// }
|
|
|
if constant.Env != "prd" {
|
|
|
return false, nil
|
|
|
}
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return false, err
|
...
|
...
|
|