作者 tangxvhui

调整短信发送的限制

... ... @@ -43,6 +43,11 @@ func (notices notifyStaffAssess) makeNotify(param *domain.StaffAssess) *domain.L
// ifSend 确认是否发送通知
func (notices notifyStaffAssess) 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
... ...
... ... @@ -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
... ...