Browse Source

打印uploadjson文件路径

dengsixing 3 years ago
parent
commit
b8071eacbf

+ 19 - 13
4dkankan-center-scene/src/main/java/com/fdkankan/scene/controller/TestController.java

@@ -96,19 +96,25 @@ public class TestController {
     @PostMapping("/test")
     @PostMapping("/test")
     public String test(String path, String buildType) throws Exception {
     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";
         return "123";
 
 
     }
     }