AI字幕数据查询

This commit is contained in:
huangrun
2025-11-19 17:49:38 +08:00
parent 84bd63ec0e
commit a9e34e42b9

View File

@@ -210,6 +210,11 @@ public class StudyCourseApi extends ApiBaseController{
List<CourseContent> cclist=contentService.getByCourseId(cid);
List<CourseSection> sectionlist=sectionService.getByCourseId(cid);
List<CourseTeacher> teachers=courseService.findTeachersByCourseId(cid);
log.info("=========== 根据课程信息查询AI字幕数据cclist = " + cclist.get(0).toString());
for (CourseContent cc : cclist) {
log.info("根据视频信息查询AI字幕数据cc = " + cc.toString());
this.getVtt( cid , cc);
}
//获取教师的介绍信息,因为一门课程 的教师不会太多,所以这里简单直接遍历查询,后续再优化
for(CourseTeacher ct : teachers) {
@@ -234,10 +239,7 @@ public class StudyCourseApi extends ApiBaseController{
ct.setTeacherName("BOE教师");
}
}
for (CourseContent cc : cclist) {
log.info("根据视频信息查询AI字幕数据cc = " + cc.toString());
this.getVtt( cid , cc);
}
rs.put("isCrowd",pass);
rs.put("contents",cclist);