Merge branch 'zcwy0704-llf' into dev0525

This commit is contained in:
zhaolongfei
2024-07-04 14:23:05 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -238,7 +238,6 @@ public class CourseFileApi extends ApiBaseController {
file.setDeleted(false); file.setDeleted(false);
file.setDown(true);//默认允许下载 file.setDown(true);//默认允许下载
file.setDuration(0);
if (file.getResType() == null) { if (file.getResType() == null) {
if ("mp4".indexOf(file.getFileType()) > -1) { if ("mp4".indexOf(file.getFileType()) > -1) {
file.setResType(10);//以后换成变量 file.setResType(10);//以后换成变量

View File

@@ -57,9 +57,10 @@ public class CourseContentServiceImpl implements ICourseContentService {
if(StringUtils.isBlank(cc.getId())) { if(StringUtils.isBlank(cc.getId())) {
//新增的情况 //新增的情况
cc.setDeleted(false); cc.setDeleted(false);
if(cc.getDuration()==null) { if(exam.getTestDuration()==null) {
cc.setDuration(0); exam.setTestDuration(0);
} }
cc.setDuration(exam.getTestDuration());
//如果是没有目录的,并具是课程内容 //如果是没有目录的,并具是课程内容
if(dto.getType()!=null && dto.getType()==10) { if(dto.getType()!=null && dto.getType()==10) {
if(cc.getSortIndex()==1) { if(cc.getSortIndex()==1) {