From e9173881277a6557f74af9a43fc8a50597fed946 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 14 Dec 2022 14:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- servers/boe-server-all/pom.xml | 5 +++++ .../java/com/xboe/module/course/api/CourseFileApi.java | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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);