|
@@ -96,19 +96,25 @@ public class TestController {
|
|
|
@PostMapping("/test")
|
|
|
public String test(String path, String buildType) throws Exception {
|
|
|
|
|
|
- JSONObject dataJson = new JSONObject();
|
|
|
- dataJson.put("obj2txt", true);
|
|
|
- dataJson.put("split_type", "SPLIT_V6");
|
|
|
- dataJson.put("data_describe", "double spherical");
|
|
|
- dataJson.put("skybox_type", "SKYBOX_V5");
|
|
|
- FileUtils.writeFile(path + "/data.json", dataJson.toString());
|
|
|
-
|
|
|
- if("V2".equals(buildType)){
|
|
|
- CreateObjUtil.objToTxt(path , "1");
|
|
|
- }
|
|
|
- if("V3".equals(buildType)){
|
|
|
- CreateObjUtil.build3dModel(path , "1");
|
|
|
- }
|
|
|
+// JSONObject dataJson = new JSONObject();
|
|
|
+// dataJson.put("obj2txt", true);
|
|
|
+// dataJson.put("split_type", "SPLIT_V6");
|
|
|
+// dataJson.put("data_describe", "double spherical");
|
|
|
+// dataJson.put("skybox_type", "SKYBOX_V5");
|
|
|
+// FileUtils.writeFile(path + "/data.json", dataJson.toString());
|
|
|
+//
|
|
|
+// if("V2".equals(buildType)){
|
|
|
+// CreateObjUtil.objToTxt(path , "1");
|
|
|
+// }
|
|
|
+// if("V3".equals(buildType)){
|
|
|
+// CreateObjUtil.build3dModel(path , "1");
|
|
|
+// }
|
|
|
+
|
|
|
+ File file = new File(
|
|
|
+ "/mnt/data/06f6aa555/851814909602693120/4898cab06133_202106081015476130_ajk/results/upload.json");
|
|
|
+ System.out.println("文件="+file.getAbsolutePath());
|
|
|
+ System.out.println("文件是否存在"+file.exists());
|
|
|
+
|
|
|
return "123";
|
|
|
|
|
|
}
|