diff --git a/servers/boe-server-all/pom.xml b/servers/boe-server-all/pom.xml index 4d1f6c6a..ab8586da 100644 --- a/servers/boe-server-all/pom.xml +++ b/servers/boe-server-all/pom.xml @@ -17,6 +17,11 @@ 1.8 + + com.xboe + xboe-module-scorm + 1.0.0 + com.xboe xboe-core diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseFileApi.java b/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseFileApi.java index 4f038592..c7219196 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseFileApi.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseFileApi.java @@ -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);