mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
提交调整
This commit is contained in:
@@ -85,7 +85,12 @@ public class SCORMParser {
|
|||||||
jsonMap.put("schema",manifest.getMetadata().getSchema());
|
jsonMap.put("schema",manifest.getMetadata().getSchema());
|
||||||
jsonMap.put("version",manifest.getMetadata().getSchemaVersion());
|
jsonMap.put("version",manifest.getMetadata().getSchemaVersion());
|
||||||
jsonMap.put("items", scoItems);//sco共有多少个
|
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();
|
ObjectMapper om=new ObjectMapper();
|
||||||
String json=om.writeValueAsString(jsonMap);
|
String json=om.writeValueAsString(jsonMap);
|
||||||
|
|||||||
Reference in New Issue
Block a user