mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 20:36:50 +08:00
Merge branch 'zcwy0704-llf' into dev0525
This commit is contained in:
@@ -238,7 +238,6 @@ public class CourseFileApi extends ApiBaseController {
|
||||
|
||||
file.setDeleted(false);
|
||||
file.setDown(true);//默认允许下载
|
||||
file.setDuration(0);
|
||||
if (file.getResType() == null) {
|
||||
if ("mp4".indexOf(file.getFileType()) > -1) {
|
||||
file.setResType(10);//以后换成变量
|
||||
|
||||
@@ -57,9 +57,10 @@ public class CourseContentServiceImpl implements ICourseContentService {
|
||||
if(StringUtils.isBlank(cc.getId())) {
|
||||
//新增的情况
|
||||
cc.setDeleted(false);
|
||||
if(cc.getDuration()==null) {
|
||||
cc.setDuration(0);
|
||||
if(exam.getTestDuration()==null) {
|
||||
exam.setTestDuration(0);
|
||||
}
|
||||
cc.setDuration(exam.getTestDuration());
|
||||
//如果是没有目录的,并具是课程内容
|
||||
if(dto.getType()!=null && dto.getType()==10) {
|
||||
if(cc.getSortIndex()==1) {
|
||||
|
||||
Reference in New Issue
Block a user