|
@@ -1,6 +1,7 @@ |
|
|
package com.iformall.sm; |
|
|
package com.iformall.sm; |
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils; |
|
|
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
@@ -54,6 +55,30 @@ public class AiVideoParam { |
|
|
|
|
|
|
|
|
private Map<String,Object> subtitle; |
|
|
private Map<String,Object> subtitle; |
|
|
|
|
|
|
|
|
|
|
|
public String toSimpelJson() { |
|
|
|
|
|
String json = JSON.toJSONString(this); |
|
|
|
|
|
JSONObject obj = JSON.parseObject(json); |
|
|
|
|
|
JSONObject vf = obj.getJSONObject("video_files"); |
|
|
|
|
|
if (null != vf ) { |
|
|
|
|
|
JSONObject bg = vf.getJSONObject("back_ground"); |
|
|
|
|
|
if ( null != bg) { |
|
|
|
|
|
bg.remove("image"); |
|
|
|
|
|
} |
|
|
|
|
|
JSONObject dh = vf.getJSONObject("digital_human"); |
|
|
|
|
|
if ( null != dh) { |
|
|
|
|
|
dh.remove("image"); |
|
|
|
|
|
} |
|
|
|
|
|
JSONArray ms = vf.getJSONArray("material"); |
|
|
|
|
|
if (null != ms && ms.size() > 0 ) { |
|
|
|
|
|
for (int i = 0 ; i < ms.size(); i++) { |
|
|
|
|
|
JSONObject jo = ms.getJSONObject(i); |
|
|
|
|
|
jo.remove("image"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return JSON.toJSONString(obj); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Data |
|
|
@Data |
|
|
public static class VideoFiles { |
|
|
public static class VideoFiles { |
|
|
private BackGround back_ground; |
|
|
private BackGround back_ground; |
|
|