mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 03:16:48 +08:00
修改提示信息
This commit is contained in:
@@ -247,9 +247,14 @@ 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);
|
||||
try {
|
||||
SCORMParser scormParser=new SCORMParser();
|
||||
String json = scormParser.parserToJson(fileFullPath);
|
||||
file.setContent(json);
|
||||
}catch (Exception e) {
|
||||
log.error("上传的非scorm课件的zip文件", e);
|
||||
return error("此课件不是标准的scorm课件打包文件,请上传标准的scorm打包的zip文件", e.getMessage());
|
||||
}
|
||||
}
|
||||
//保存
|
||||
courseFileService.save(file);
|
||||
|
||||
Reference in New Issue
Block a user