ソースを参照

//

private_deployment
xhxu 2年前
コミット
f2311daf23
1個のファイルの変更3行の追加2行の削除
  1. +3
    -2
      suimangService/src/main/java/com/iformall/sm/AiVideoParam.java

+ 3
- 2
suimangService/src/main/java/com/iformall/sm/AiVideoParam.java ファイルの表示

@@ -1,5 +1,6 @@
package com.iformall.sm;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.List;
@@ -52,7 +53,7 @@ public class AiVideoParam {
}
if(video_files.getDigital_human() != null){
str.append("\"digital_human\":").append("{")
.append("\"coord\":").append(video_files.getDigital_human().getCoord().toString()).append(",")
.append("\"coord\":").append(JSONObject.toJSONString(video_files.getDigital_human().getCoord())).append(",")
.append("\"level\":").append(video_files.getDigital_human().getLevel()).append(",")
.append("\"ratio\":").append(video_files.getDigital_human().getRatio())
.append("},");
@@ -62,7 +63,7 @@ public class AiVideoParam {
for (Material material:video_files.getMaterial()) {
if(material != null){
str.append("{");
str.append("\"coord\":").append(material.getCoord().toString()).append(",")
str.append("\"coord\":").append(JSONObject.toJSONString(material.getCoord())).append(",")
.append("\"image\":").append("\"").append("\",")
.append("\"level\":").append(material.getLevel()).append(",")
.append("\"ratio\":").append(material.getRatio());


読み込み中…
キャンセル
保存