提交调整

This commit is contained in:
daihh
2022-12-14 14:08:30 +08:00
parent 97a83f6326
commit e917388127
2 changed files with 9 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ import com.xboe.core.upload.XFileUploader;
import com.xboe.module.course.entity.CourseFile;
import com.xboe.module.course.service.ICourseFileService;
import com.xboe.module.course.service.impl.FileConverterProvider;
//import com.xboe.module.scorm.SCORMParser;
import com.xboe.module.scorm.SCORMParser;
import com.xboe.standard.BaseConstant;
import com.xboe.standard.enums.BoedxCourseFileType;
@@ -220,9 +220,9 @@ public class CourseFileApi extends ApiBaseController {
file.setConverStatus(1);//转化中
}else if(file.getFileType().equalsIgnoreCase("zip")) {
//scorm包的内容
// SCORMParser scormParser=new SCORMParser();
// String json = scormParser.parserToJson(fileFullPath);
// file.setContent(json);
SCORMParser scormParser=new SCORMParser();
String json = scormParser.parserToJson(fileFullPath);
file.setContent(json);
}
//保存
courseFileService.save(file);