...
|
...
|
@@ -44,6 +44,11 @@ func (notices notifySummaryEvaluation) makeNotify(param *domain.SummaryEvaluatio |
|
|
|
|
|
// ifSend 确认是否发送通知
|
|
|
func (notices notifySummaryEvaluation) ifSend(index int) (bool, error) {
|
|
|
nowDay := time.Now().Weekday()
|
|
|
if nowDay == time.Sunday || nowDay == time.Saturday {
|
|
|
//周末不发
|
|
|
return false, nil
|
|
|
}
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return false, err
|
...
|
...
|
|