|
@@ -54,6 +54,7 @@ import com.google.common.collect.Lists;
|
|
import java.io.BufferedReader;
|
|
import java.io.BufferedReader;
|
|
import java.io.File;
|
|
import java.io.File;
|
|
import java.io.InputStreamReader;
|
|
import java.io.InputStreamReader;
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
import java.net.HttpURLConnection;
|
|
import java.net.HttpURLConnection;
|
|
import java.net.URL;
|
|
import java.net.URL;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
@@ -2972,6 +2973,20 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static void main(String[] args) throws UnsupportedEncodingException {
|
|
|
|
+ JSONObject floorplanJson = new JSONObject();
|
|
|
|
+ floorplanJson.put("has_floor_ajk_json", true);
|
|
|
|
+ floorplanJson.put("has_vision_txt", true);
|
|
|
|
+ floorplanJson.put("has_floorplan_json", true);
|
|
|
|
+
|
|
|
|
+ JSONObject dataJson = new JSONObject();
|
|
|
|
+ dataJson.put("extras", floorplanJson);
|
|
|
|
+ //V5表示不需要生成high,low文件
|
|
|
|
+ dataJson.put("skybox_type", "SKYBOX_V8");
|
|
|
|
+ dataJson.put("split_type", "SPLIT_V10");
|
|
|
|
+ FileUtils.writeFile("D:\\Downloads\\test_ajk" + File.separator+"data.json", new String(dataJson.toString().getBytes(), "UTF-8"));
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public ResultData uploadPanoramaOrVideo(String sceneNum, String fileName, String type, MultipartFile file, String planId) throws Exception {
|
|
public ResultData uploadPanoramaOrVideo(String sceneNum, String fileName, String type, MultipartFile file, String planId) throws Exception {
|
|
if(org.apache.commons.lang3.StringUtils
|
|
if(org.apache.commons.lang3.StringUtils
|