在线课时长添加

This commit is contained in:
zhaolongfei
2024-07-04 15:18:39 +08:00
parent cdccb6f0ef
commit ebaf8e09d3

View File

@@ -243,12 +243,15 @@ public class CourseFileApi extends ApiBaseController {
file.setResType(10);//以后换成变量
} else if ("jpg,png,gif".indexOf(file.getFileType()) > -1) {
file.setResType(30);//以后换成变量
file.setDuration(file.getDuration()*60);
} else if ("mp3,wmv".indexOf(file.getFileType()) > -1) {
file.setResType(20);//以后换成变量
} else if ("doc,xls,ppt,docx,xlsx,pptx".indexOf(file.getFileType()) > -1) {
file.setResType(40);//以后换成变量
file.setDuration(file.getDuration()*60);
}else if(file.getFileType().equalsIgnoreCase("zip")) {
file.setResType(BoedxCourseFileType.Scrom.getValue());//scorm课件
file.setDuration(file.getDuration()*60);
} else {
file.setResType(90);//以后换成变量
}