瀏覽代碼

打印uploadjson文件路径

dengsixing 3 年之前
父節點
當前提交
b8071eacbf
共有 1 個文件被更改,包括 19 次插入13 次删除
  1. 19 13
      4dkankan-center-scene/src/main/java/com/fdkankan/scene/controller/TestController.java

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

@@ -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";
 
     }