提交调整

This commit is contained in:
daihh
2022-12-13 10:18:37 +08:00
parent 3f1d46908e
commit b2debe14e4

View File

@@ -85,7 +85,12 @@ public class SCORMParser {
jsonMap.put("schema",manifest.getMetadata().getSchema());
jsonMap.put("version",manifest.getMetadata().getSchemaVersion());
jsonMap.put("items", scoItems);//sco共有多少个
//jsonMap.put("index", "");//打开播放时进入的第一个sco
if(scoItems.size()>0 && scoItems.get(0).getScoUrl()!=null) {
jsonMap.put("index",scoItems.get(0).getScoUrl());//打开播放时进入的第一个sco
}else {
jsonMap.put("index","");//无首页地址
}
ObjectMapper om=new ObjectMapper();
String json=om.writeValueAsString(jsonMap);