This commit is contained in:
1 parent
7206529938
commit
6cdcc4f221
2 files changed
+20
-36
No files matched your search
@@ -357,15 +357,6 @@ func (s *trainingService) dispatchSessionNoticesIfNeeded(ctx context.Context, te
|
||||
}
|
||||
}
|
||||
|
||||
// AfterEnrollmentsChanged 名单保存(SetEnrollments)后的通知钩子。
|
||||
func (s *trainingService) AfterEnrollmentsChanged(ctx context.Context, tenantID uint64, sessionID string) {
|
||||
session, err := s.repo.GetSession(ctx, tenantID, sessionID)
|
||||
if err != nil || session == nil {
|
||||
return
|
||||
}
|
||||
s.dispatchSessionNoticesIfNeeded(ctx, tenantID, session)
|
||||
}
|
||||
|
||||
// AfterMaterialUploaded 课件上传后的补推钩子:扫描该课程近未来(当月+下月)的
|
||||
// 活跃场次,immediate 场次补推未通知学员;day_before 场次若已进入 T-1 窗口同样
|
||||
// 补推(此时调度器时点已过或即将到点,统一由本钩子兜底,幂等保证不重发)。
|
||||
|
||||
Reference in new issue
Block a user